<?php session_start();
	  require_once ("../adm_usuarios.php");
	  val_modulo(3);
	  	require_once("../conexion/conexion.php");
        $Codexp = $_GET['Codexp'];
        require_once("cobd/consultas_orientacion.php");
        $NomExp = "";
		$ApeExp = "";
    // Consultas oribusexp.php
    
        $sql = "SELECT per.PER_NOMBRE, per.PER_APELLIDO
                  FROM PERSONAS_CON_DISCAPACIDAD pcd, PERSONA per, CAT_TIPO_DOCUMENTO ctd 
                 WHERE pcd.PER_CODIGO = per.PER_CODIGO AND
                       ctd.CTID_CODIGO = per.CTID_CODIGO AND
                       pcd.EXP_CODIGO = '$Codexp'";
        $result = mysql_query($sql);
		while ($row=mysql_fetch_array($result))
		{
            $NomExp=$row["PER_NOMBRE"];
            $ApeExp=$row["PER_APELLIDO"];
        }
        mysql_free_result($result);
        $BanMod = obtener_validacion_ingreso($Codexp);
        
        if ($BanMod == 1)
        {
            header("Location: ori_modificacion.php?Codexp=".$Codexp);
        }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Código del Icono -->			
<link href="../images/logo.ico" type="image/x-icon" rel="shortcut icon" />			
<!-- InstanceBeginEditable name="doctitle" -->
<title>Orientaci&oacute;n</title>
<link href="../styles/tesis.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="../scripts/jquery162.js"></script>
<script type="text/javascript" src="../scripts/error_list.js"></script>
<!-- start jquery ui -->
<link href="../styles/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="../styles/jquery-ui.min.js"></script>
<!-- end jquery ui -->

<?php
		/*Conexion a la base de datos */
	
        
        $TipoDeficiencia = tipo_deficiencia();
        $OrigenDeficiencia = origen_deficiencia();
        $GradoDeficiencia = grado_deficiencia();
        $Idiomas = idioma();
        $NivelesConocimiento = niveles_conocimiento();
        $TipoFormacion = tipo_formacion();
        $TituloFormacion = titulo_formacion();
        $Programas = tipo_software();
        $EstadoFormacion = estado_formacion();
        $EstadoEmpleo = estado_empleo();
        $MotivoBaja = motivo_baja();
        $NumPersonas = numero_personas();
        $TipoJornada = tipo_jornada();
        $TipoHorario = tipo_horario();
        $TipoContrato = tipo_contrato();
        $Profesion_ocupacion = profesion_ocupacion();
        $NivelAutoestima = nivel_autoestima();
        
?>

<script type="text/javascript" src="../scripts/gen_validate.js"></script>
<script type="text/javascript">

$(document).ready(function() {
    showLog(<?php echo $logueo; ?>);
    <?php if($logueo == TRUE){echo habilitar_menu();} ?>
    menuPrincipal ('2');
    $("input").attr('onpaste','return false');
    $("textarea").attr('onpaste','return false');
    $("#tabs").tabs();
    
        $('.valFecMe').change(function(){
            var idNum = $(this).attr('id').replace('txtinit', '');
            if ($('#txtfint'+idNum).val() != '')
            {
                if (validaFecha(convFechaEng($(this).val()),convFechaEng($('#txtfint'+idNum).val()), error78) == false ){$(this).val(''); $(this).focus();};
            }
        });
        $('.valFecMa').change(function(){
            var idNum = $(this).attr('id').replace('txtfint', '');
            if ($('#txtinit'+idNum).val() != '')
            {
                if (validaFecha(convFechaEng($('#txtinit'+idNum).val()),convFechaEng($(this).val()), error79) == false ){$(this).val(''); $(this).focus();};
            }
        });
        $(".change").change(function(){
		mostrarElemento($(this).val(), 'exp');
		$(".exp").val('');
	});
	$('#seltra').change(function(){
		mostrarElemento($(this).val(), 'trata');
	});
	//$('#selayt').change(function(){
	//	mostrarElemento($(this).val(), 'tipay');
	//});
	$('#seltpe').change(function(){
		mostrarElemento($(this).val(), 'topes');
	});
	$('#selmdi').change(function(){
		mostrarElemento($(this).val(), 'mandi');
	});
        $('#seltiing').change(function(){
		mostrarElemento($(this).val(), 'tieIng');
	}); 
        //$('#seltinsmej').change(function(){
	//	mostrarElemento($(this).val(), 'mejEmp');
	//});
	$('.selHor').change(function(){
		var elmod = $(this).attr('id');
		if($(this).val() == '<?php echo Formacion_ocuacional; ?>')
		{
			$('.'+elmod).show();
		}
		else
		{
			$('.'+elmod).hide();
		}
	});
	$('.mskCero').focusin(function(){  
        if ($(this).val() == "0"){
            $(this).val("");  } 
        });
	$('.mskCero').focusout(function(){  
        if ($(this).val() == ""){
            $(this).val("0");  } 
        });
  }); // Fin document.ready
    
    function MostrarDatePicker(valor)
    {
        var opcion = $('#selpcd').val();
        if(opcion == 'S')
        {
            $('#datePicker'+valor).show();
        }
        else if (opcion == 'N')
        {
            $('#datePicker'+valor).hide();
        }
    }
    function mostrarAYT(valor)
    {
        mostrarElemento($('#selayt'+valor).val(), 'tipay'+valor);
    }
    function showLogin()
            {
            $(".loginbox").slideToggle("slow");
            }

    //datepicker

	$(function() {
		$( ".datepicker" ).datepicker({
			showOn: "button",
			buttonImage: "../images/calendar.gif",
			buttonImageOnly: true,
			maxDate: "0",
			dateFormat: 'dd-mm-yy',
			changeYear: 'Yes'
			
		});
                var cont = 1;
                $('.ui-datepicker-trigger').each(function(){
                    $(this).attr("id", "datePicker"+cont);
                    cont ++;
                });
                $('#datePicker1').hide();
                
	});
        
        function obtSubDiscapacidad(valor)
        {
            $.ajax({
				url: "../lib/getSubDiscapacidad.php",
				type: "GET",
				data: "DiscaSel="+$("#seltd"+valor).val(),
				success: function(datos){
				$('#selsd'+valor).html(datos);
				}
                    });
        }
        function obtTitFormacion(valor)
        {
            $.ajax({
				url: "../lib/getTitFormacion.php",
				type: "GET",
				data: "TipForSel="+$("#seltif"+valor).val(),
				success: function(datos){
				$('#seltit'+valor).html(datos);
				}
                    });
        }
        function validar_ori_DD ()
        {
            if(validar_element('selestado', '', error1)== false){return;}
            if(validar_element('seldef1', '', error2)== false){return;}
            if(validar_element('seland1', '', error3)== false){return;}
            if(validar_element('selod1', '', error4)== false){return;}
            if(validar_element('selgd1', '', error5)== false){return;}
            if($('#selpcd').val() == 'S')
                {
                    if(validar_element('selexp', '', error6)== false){return;}
                    if(validar_element('selexpanio', '', error7)== false){return;}
                }
            if(validar_multiple(5, 'pseltd', 'seltd', error8) == false){return;}
            if(validar_multiple(5, 'pseltd', 'selsd', error9) == false){return;}
            if(validar_multiple_sel(5, 'pseltd', 'seltat', error10, '', 'selayt', 'S' ) == false){return;}
            /*if($('#selayt').val() == 'S')
                {
                    if(validar_element('seltat', '', error10)== false){return;}
                }*/
           if($('#seltra').val() == 'S')
                {
                    if(validar_element('txtctr', '', error11)== false){return;}
                    if(validar_element('txthtr', '', error12)== false){return;}
                }
           if(validar_element('seldtm', '', error13)== false){return;}
           if(validar_element('seldes', '', error14)== false){return;}
           if(validar_element('selpos', '', error15)== false){return;}
           if(validar_element('selree', '', error16)== false){return;}
           if($('#seltpe').val() == 'S')
                {
                    if(validar_element('selmov', '', error17)== false){return;}
                    if(validar_element('txtcpe', '', error18)== false){return;}
                }
          if($('#selmdi').val() == 'S')
                {
                    if(validar_element('txtmdc', '', error19)== false){return;}
                }
          
          $.ajax({
				url: "../lib/InsOrientacion.php",
				type: "GET",
				data: obtener_parametros_DD(),
				success: function(datos)
                                {
                                    if (datos == "OK")
                                        {
                                            alert(msgIngresadosOK);
                                            
                                        }
                                    else
                                        {
                                            alert(msgIngresadosERROR + " Error: " + datos);
                                        }
                                    $('#btnDD').removeAttr('href');
                                    $(".blkDD").attr('disabled','disabled');
                                }
            }); 
        }
        function obtener_parametros_DD()
        {
            var datos = "CodExp="+trim($('#txtCodEXP').val())+"&EstOri="+trim($('#selestado').val())+
                        "&Defi="+trim($('#seldef1').val())+"&AnioDefi="+trim($('#seland1').val())+
                        "&OriDefi="+trim($('#selod1').val())+"&GradoDefi="+trim($('#selgd1').val())+
                        "&DiagDefi="+trim($('#txtdi1').val())+"&CerDis="+trim($('#selpcd').val())+
                        "&ExCer="+trim($('#selexp').val())+"&FechaCer="+$('#selexpanio').val()+
                        "&strXML="+obtener_xml('pseltd', 'disxml')+"&obDis="+trim($('#txtobtd').val())+
                        "&Trata="+trim($('#seltra').val())+"&CualTrata="+trim($('#txtctr').val())+
                        "&HorTrata="+trim($('#txthtr').val())+"&DesMan="+trim($('#seldtm').val())+
                        "&DesManCom="+trim($('#txtdtm').val())+"&Despla="+trim($('#seldes').val())+
                        "&DesplaCom="+trim($('#txtdes').val())+"&Posi="+trim($('#selpos').val())+
                        "&PosiCom="+trim($('#txtpos').val())+"&RelEsf="+trim($('#selree').val())+
                        "&RelEsfCom="+trim($('#txtree').val())+"&ToPes="+trim($('#seltpe').val())+
                        "&ToPesMov="+trim($('#selmov').val())+"&ToPesLb="+trim($('#txtcpe').val())+
                        "&ManDin="+trim($('#selmdi').val())+"&ManDinCom="+trim($('#txtmdc').val());
            return datos;
        }
        function obtener_xml(classP, classX)
        {
            var strXML = "<NP>";
            var noco = 1;
            var dico = 1;
            var sdco = 2;
            var ayco = 3;
            
            var i=1;
            $('.'+classX).each(function(){
                if (document.getElementById(classP+noco).style.display != 'none')
                {
                    if(i == dico)
                    {
                      strXML += "<N><DI>" +  $(this).val() + "</DI>";
                      dico = dico + 3;
                    }
                    if(i == sdco)
                    {
                      strXML += "<SD>" +  $(this).val() + "</SD>";
                      sdco = sdco + 3;
                    }
                    if(i == ayco)
                    {
                      strXML += "<AY>" +  $(this).val() + "</AY></N>";
                      ayco = ayco + 3;
                      noco++;
                    }
                    i++;
                }
            });
            strXML += "</NP>";
            return strXML;
        }
        function validar_ori_CF ()
        {
            if(validar_element('selestforma', '', error33)== false){return;}
            if(validar_multiple_oc(5, 'pseltif', 'seltif', 'txthor', error24, <?php echo Formacion_ocuacional; ?>) == false){return;}
            /*if(validar_multiple(5, 'pseltif', 'seltif', error20) == false){return;}
            if(validar_multiple(5, 'pseltif', 'seltit', error21) == false){return;}
            if(validar_multiple(5, 'pseltif', 'txtinst', error22) == false){return;}
            if(validar_multiple(5, 'pseltif', 'txtane', error23) == false){return;}
            
            if(validar_multiple(5, 'pintfor', 'selintf', error25) == false){return;}
            if(validar_multiple(5, 'tidm', 'selidm', error26) == false){return;}
            if(validar_multiple(5, 'tidm', 'selhab', error27) == false){return;}
            if(validar_multiple(5, 'tidm', 'selesc', error28) == false){return;}
            if(validar_multiple(5, 'tidm', 'selcon', error29) == false){return;}
            if(validar_multiple(5, 'pintidm', 'selinti', error30) == false){return;}
            if(validar_multiple(5, 'tinf', 'selpro', error31) == false){return;}
            if(validar_multiple(5, 'tinf', 'selniv', error32) == false){return;}
            if(validar_multiple(5, 'pintinf', 'selintin', error33) == false){return;}*/
            
            $.ajax({
				url: "../lib/InsOrientCF.php",
				type: "GET",
				data: obtener_parametros_CF(),
				success: function(datos)
                                {
                                    if (datos == "OK")
                                        {
                                            alert(msgIngresadosOK);
                                        }
                                    else
                                        {
                                            alert(msgIngresadosERROR + " Error: " + datos);
                                        }
                                    $('#btnCF').removeAttr('href');
                                    $(".blkCF").attr('disabled','disabled');
              			}
            });
        }
        function obtener_parametros_CF()
        {
            var datos = "CodExp="+trim($('#txtCodEXP').val())+"&EstForm="+$('#selestforma').val()+"&strXMLfo="+obtener_xmlCF('pseltif','cfXML','seltif')+
                        "&strXMLif="+obtener_xmlINT('pintfor','ifXML')+"&strXMLid="+obtener_xmlID('tidm', 'idXML')+
                        "&strXMLii="+obtener_xmlINT('pintidm', 'iiXML')+"&strXMLpr="+obtener_xmlPR('tinf','prXML')+
                        "&strXMLipr="+obtener_xmlINT('pintinf','iprXML');
            return datos;
        }
        function obtener_xmlCF(classP, classX, classD)
        {
            var strXML = "<NP>";
            var noco = 1;
            var tfco = 1;
            var tico = 2;
            var inco = 3;
            var anco = 4;
            var hoco = 5;
            var i=1;
            $('.'+classX).each(function(){
                if (document.getElementById(classP+noco).style.display != 'none')
                {
                    if(i == tfco)
                    {
                      strXML += "<N><TF>" +  $(this).val() + "</TF>";
                      tfco = tfco + 5;
                    }
                    if(i == tico)
                    {
                      strXML += "<TI>" +  $(this).val() + "</TI>";
                      tico = tico + 5;
                    }
                    if(i == inco)
                    {
                      strXML += "<IN>" +  $(this).val() + "</IN>";
                      inco = inco + 5;
                    }
                    if(i == anco)
                    {
                      strXML += "<AN>" +  $(this).val() + "</AN>";
                      anco = anco + 5;
                    }
                    if(i == hoco)
                    {
                      if( $('#'+classD+noco).val() == <?php echo Formacion_ocuacional; ?>)
                      {
                          strXML += "<HO>" +  $(this).val() + "</HO></N>";
                          hoco = hoco + 5;
                      }
                      else
                      {
                          strXML += "<HO></HO></N>";
                          hoco = hoco + 5;
                      }
                      noco++;
                    }
                    i++;
                }
            });
            strXML += "</NP>";
            return strXML;
        }
        function obtener_xmlINT(classP, classX)
        {
            var strXML = "<NP>";
            var noco = 1;
            var intco = 1;
            var obco = 2;
            var chco = 3;
            var i=1;
            $('.'+classX).each(function(){
                if (document.getElementById(classP+noco).style.display != 'none')
                {
                    if(i == intco)
                    {
                      strXML += "<N><IN>" +  $(this).val() + "</IN>";
                      intco = intco + 3;
                    }
                    if(i == obco)
                    {
                      strXML += "<OB>" +  $(this).val() + "</OB>";
                      obco = obco + 3;
                    }
                    if(i == chco)
                    {
                      var respuesta = "F";
                      if($(this).attr('checked') == 'checked')
                      {
                          respuesta = "T";
                      }
                      strXML += "<CH>" +  respuesta + "</CH></N>";
                      chco = chco + 3;
                      noco++;
                    }
                    i++;
                }
            });
            strXML += "</NP>";
            return strXML;
        }
	function obtener_xmlID(classP, classX)
        {
            var strXML = "<NP>";
            var noco = 1;
            var idco = 1;
            var haco = 2;
            var esco = 3;
            var coco = 4;
            var i=1;
            $('.'+classX).each(function(){
                if (document.getElementById(classP+noco).style.display != 'none')
                {
                    if(i == idco)
                    {
                      strXML += "<N><ID>" +  $(this).val() + "</ID>";
                      idco = idco + 4;
                    }
                    if(i == haco)
                    {
                      strXML += "<HA>" +  $(this).val() + "</HA>";
                      haco = haco + 4;
                    }
                    if(i == esco)
                    {
                      strXML += "<ES>" +  $(this).val() + "</ES>";
                      esco = esco + 4;
                    }
                    if(i == coco)
                    {
                      strXML += "<CO>" +  $(this).val() + "</CO></N>";
                      coco = coco + 4;
                      noco++;
                    }
                    i++;
                }
            });
            strXML += "</NP>";
            return strXML;
        }
        function obtener_xmlPR(classP, classX)
        {
            var strXML = "<NP>";
            var noco = 1;
            var dico = 1;
            var sdco = 2;
            var i=1;
            $('.'+classX).each(function(){
                if (document.getElementById(classP+noco).style.display != 'none')
                {
                    if(i == dico)
                    {
                      strXML += "<N><PR>" +  $(this).val() + "</PR>";
                      dico = dico + 2;
                    }
                    if(i == sdco)
                    {
                      strXML += "<NI>" +  $(this).val() + "</NI></N>";
                      sdco = sdco + 2;
                      noco++;
                    }
                    i++;
                }
            });
            strXML += "</NP>";
            return strXML;
        }
        function validar_ori_CE ()
        {
            if(validar_element('selestemp', '', error34)== false){return;}
            if(validar_element('selsitemp', '', error49)== false){return;}
            if(validar_element('txtincapa', '', error35)== false){return;}
            if(validar_element('Nit', '', error100)== false){return;}
            //if($('#seltinsmej').val() == 'S')
            //    {
            //        if(validar_element('txtslant', '', error36)== false){return;}
            //    }
            if(validar_element('selnofam', '', error38)== false){return;}
            if(validar_element('selconrem', '', error39)== false){return;}
            if(validar_element('selnoper', '', error40)== false){return;}
            if($('#seltiing').val() == 'S')
                {
                    if(validar_element('selipcon', '', error50)== false){return;}
                    if(validar_element('txtconing', '', error41)== false){return;}
                    if(validar_element('txtfecvig', '', error80)== false){return;}
                }
            if(trim($('#txtempt1').val()) != '')
                {
                    if(validar_multiple(5, 'texpla', 'txtempt', error42) == false){return;}
                    if(validar_multiple(5, 'texpla', 'txtpuet', error43) == false){return;}
                    if(validar_multiple(5, 'texpla', 'txtinit', error44) == false){return;}
                    if(validar_multiple(5, 'texpla', 'txtfint', error45) == false){return;}
                    if(validar_multiple(5, 'texpla', 'selmott', error46) == false){return;}
                    if(validar_multiple(5, 'texpla', 'txtslfunr', error47) == false){return;}
                    if(validar_multiple(5, 'texpla', 'txtslayte', error48) == false){return;}
                } 

            $.ajax({
                url: "../lib/ValDoc.php",
                type: "GET",
                data: "Opcion=2&Nit="+$("#Nit").val(),
                success: function(datos)
                {

                    if(datos == 1)
                    {
                        alert("Este documento ya se encuentra registrado");
                        $("#Nit").val("");
                        $("#Nit").focus();
                        return;
                    }
                    else
                    {
						$.ajax({
							url: "../lib/InsOrientCE.php",
							type: "GET",
							data: obtener_parametros_CE(),
							success: function(datos)
											{
												if (datos == "OK")
													{
														alert(msgIngresadosOK);
													}
												else
													{
														alert(msgIngresadosERROR + " Error: " + datos);
													}
												$('#btnCE').removeAttr('href');
												$(".blkCE").attr('disabled','disabled');
									}
						});
					}
				}
			});
		}
				
        function obtener_parametros_CE()
        {
            var datos = "CodExp="+trim($('#txtCodEXP').val())+"&EstEmp="+$('#selestemp').val()+"&SitEmp="+$('#selsitemp').val()+
                        "&incapa="+$('#txtincapa').val()+"&incapaob="+trim($('#txtobsitlab').val())+
                        "&insmejemp="+trim($('#seltinsmej').val())+"&antigu="+trim($('#txtslant').val())+
                        "&noisss="+trim($('#txtslnois').val())+"&noafp="+trim($('#txtslnoafp').val())+
                        "&noipsfa="+trim($('#txtslnoip').val())+"&nofam="+trim($('#selnofam').val())+
                        "&noconrem="+trim($('#selconrem').val())+"&noperac="+trim($('#selnoper').val())+
                        "&tieing="+trim($('#seltiing').val())+"&concep="+trim($('#selipcon').val())+"&coning="+trim($('#txtconing').val())+
                        "&ingob="+trim($('#txtobing').val())+"&strXMLel="+obtener_xmlEL('texpla', 'exlaXML')+
                        "&Nit="+trim($('#Nit').val())+"&vigenPen="+trim($('#txtfecvig').val());
            return datos;
        }
        function obtener_xmlEL(classP, classX)
        {
            var strXML = "<NP>";
            var noco = 1;
            var emco = 1;
            var puco = 2;
            var inco = 3;
            var fico = 4;
            var moco = 5;
            var fnco = 6;
            var obco = 7;
            var ayco = 8;
            var i=1;
            $('.'+classX).each(function(){
                if (document.getElementById(classP+noco).style.display != 'none')
                {
                    if(i == emco)
                    {
                      strXML += "<N><EM>" +  trim($(this).val()) + "</EM>";
                      emco = emco + 8;
                    }
                    if(i == puco)
                    {
                      strXML += "<PU>" +  trim($(this).val()) + "</PU>";
                      puco = puco + 8;
                    }
                    if(i == inco)
                    {
                      var fechaIN = $(this).val();
                      if (fechaIN != "")
                          {
                              var fechaTE = fechaIN.split("-");
                              fechaIN = fechaTE[2]+"-"+fechaTE[1]+"-"+fechaTE[0];
                              strXML += "<IN>" + fechaIN + "</IN>";
                          }
                      else
                          {
                              strXML += "<IN></IN>";
                          }
                      inco = inco + 8;
                    }
                    if(i == fico)
                    {
                      var fechaFI = $(this).val();
                      if (fechaFI != "")
                          {
                              var fechaTI = fechaFI.split("-");
                              fechaFI = fechaTI[2]+"-"+fechaTI[1]+"-"+fechaTI[0];
                              strXML += "<FI>" +  fechaFI + "</FI>";
                          }
                      else
                          {
                              strXML += "<FI></FI>";
                          }
                      fico = fico + 8;
                    }
                    if(i == moco)
                    {
                      strXML += "<MO>" +  trim($(this).val()) + "</MO>";
                      moco = moco + 8;
                    }
                    if(i == fnco)
                    {
                      strXML += "<FN>" +  trim($(this).val()) + "</FN>";
                      fnco = fnco + 8;
                    }
                    if(i == obco)
                    {
                      strXML += "<OB>" +  trim($(this).val()) + "</OB>";
                      obco = obco + 8;
                    }
                    if(i == ayco)
                    {
                      strXML += "<AY>" +  trim($(this).val()) + "</AY></N>";
                      ayco = ayco + 8;
                      noco++;
                    }
                    i++;
                }
            });
            strXML += "</NP>";
            return strXML;
        }
        function validar_ori_DL ()
        {
            if(validar_element('seliptj', '', error51)== false){return;}
            if(validar_element('selipho', '', error52)== false){return;}
            if(validar_element('seliplt', '', error53)== false){return;}
            if(validar_element('txtexpeco', '', error54)== false){return;}
            if(validar_element('selipdv', '', error55)== false){return;}
            if(validar_element('selipdcr', '', error56)== false){return;}
            if(validar_element('seliptic', '', error57)== false){return;}
            //if(validar_multiple(5, 'pintprof', 'selinppo', error58) == false){return;}
                                    
            $.ajax({
				url: "../lib/InsOrientDL.php",
				type: "GET",
				data: obtener_parametros_DL(),
				success: function(datos)
                                {
                                    if (datos == "OK")
                                        {
                                            alert(msgIngresadosOK);
                                        }
                                    else
                                        {
                                            alert(msgIngresadosERROR + " Error: " + datos);
                                        }
                                    $('#btnDL').removeAttr('href');
                                    $(".blkDL").attr('disabled','disabled');
              			}
            });
        }
	function obtener_parametros_DL()
        {
            var datos = "CodExp="+trim($('#txtCodEXP').val())+"&TipJor="+$('#seliptj').val()+
                        "&HorJor="+$('#selipho').val()+"&LugTra="+trim($('#seliplt').val())+
                        "&ExpEco="+trim($('#txtexpeco').val())+"&DisVia="+trim($('#selipdv').val())+
                        "&DisRes="+trim($('#selipdcr').val())+"&TipCon="+trim($('#seliptic').val())+
                        "&DisLabOb="+trim($('#selipobs').val())+"&strXMLintpro="+obtener_xmlINT('pintprof','intpXML');
            return datos;
        }
        function validar_inf_ori ()
        {
            if(validar_element('txtinfor1', '', error59)== false){return;}
            if(validar_element('txtinfor2', '', error60)== false){return;}
            if(validar_element('txtinfor3', '', error61)== false){return;}
            if(validar_element('txtinfor4', '', error62)== false){return;}
            if(validar_element('txtinfor5', '', error63)== false){return;}
            //if(validar_element('txtinfor6', '', error64)== false){return;}
            if(validar_element('txtinfor7', '', error65)== false){return;}
            if(validar_element('txtinfor8', '', error66)== false){return;}
            if(validar_element('txtinfor9', '', error67)== false){return;}
            if(validar_element('txtinfor12', '', error68)== false){return;}
            if(validar_element('txtinfor13', '', error69)== false){return;}
            if(validar_element('txtinfor14', '', error70)== false){return;}
            if(validar_element('txtinfor15', '', error71)== false){return;}
            if(validar_element('txtinfor16', '', error72)== false){return;}
            if(validar_element('txtinfor17', '', error73)== false){return;}
            if(validar_element('txtinfor18', '', error74)== false){return;}
            if(validar_element('txtinfor20', '', error75)== false){return;}
            if(validar_element('txtinfor21', '', error76)== false){return;}
            if(validar_element('txtinfor22', '', error77)== false){return;}
            if(validar_element('txtinfor23', '', error81)== false){return;}
            //if(validar_element('txtinfor25', '', error82)== false){return;}
            
                                                
            $.ajax({
				url: "../lib/InsOrientIN.php",
				type: "GET",
				data: obtener_parametros_inf_ori(),
				success: function(datos)
                                {
                                    if (datos == "OK")
                                        {
                                            alert(msgIngresadosOK);
                                        }
                                    else
                                        {
                                            alert(msgIngresadosERROR + " Error: " + datos);
                                        }
                                    $('#btnIO').removeAttr('href');
                                    $(".blkIO").attr('disabled','disabled');
              			}
            });
        }
        function obtener_parametros_inf_ori()
        {
            var datos = "CodExp="+trim($('#txtCodEXP').val())+"&ExpPer="+trim($('#txtinfor1').val())+
                        "&AdeExp="+trim($('#txtinfor2').val())+"&ActMot="+trim($('#txtinfor3').val())+
                        "&HabBus="+trim($('#txtinfor4').val())+"&NivEmp="+trim($('#txtinfor5').val())+
                        "&AnaPer="+trim($('#txtinfor6').val())+"&IndAct="+trim($('#txtinfor7').val())+
                        "&AccTra="+trim($('#txtinfor8').val())+"&OriEnt="+trim($('#txtinfor9').val())+
                        "&ObsEmp="+trim($('#txtinfor11').val())+
                        "&HabSoc="+trim($('#txtinfor12').val())+"&HabCom="+trim($('#txtinfor13').val())+
                        "&TraEqu="+trim($('#txtinfor14').val())+"&CapIni="+trim($('#txtinfor15').val())+
                        "&FleAda="+trim($('#txtinfor16').val())+"&ResCon="+trim($('#txtinfor17').val())+
                        "&RelInt="+trim($('#txtinfor18').val())+"&OtrCon="+trim($('#txtinfor19').val())+
                        "&EmpPla="+trim($('#txtinfor20').val())+"&ForPla="+trim($('#txtinfor21').val())+
                        "&ValPla="+trim($('#txtinfor22').val())+"&ProIns="+trim($('#txtinfor23').val())+
                        "&ProInsObs="+trim($('#txtinfor24').val())+"&NivAut="+trim($('#txtinfor25').val());
            return datos;
        }
</script>
<!-- InstanceEndEditable -->
<link href="../styles/tesis.css" rel="stylesheet" type="text/css" media="screen" />

<!-- Script Accordeon Menu -->
<script type="text/javascript" src="../scripts/ddaccordion.js"></script>
<script type="text/javascript">

ddaccordion.init({ //top level headers initialization
	headerclass: "expandable", //Shared CSS class name of headers group that are expandable
	contentclass: "categoryitems", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})

ddaccordion.init({ //2nd level headers initialization
	headerclass: "subexpandable", //Shared CSS class name of sub headers group that are expandable
	contentclass: "subcategoryitems", //Shared CSS class name of sub contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["opensubheader", "closedsubheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["none", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})


</script>

<!-- Script Accordeon Menu -->
<style type="text/css">
<!--
.Estilo1 {
	font-size: 12px;
	font-style: italic;
	font-weight: bold;
}
.Estilo5 {font-style: italic; font-size: 12px;}
.Estilo6 {color: #FF0000}
.Estilo7 {font-size: 14px}
.Estilo8 {font-size: 16px}
.Estilo9 {
	font-weight: bold;
	font-size: 14px;
} 
.Estilo12 {font-size: 11px}
-->
</style>

<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>

<body>

<div class="container">
   <div class="header"><!-- #BeginLibraryItem "/Library/loginbox.lbi" -->
    <div class="loginButton login"><a onclick="showLogin()" href="javascript:;">Login</a></div>
    <div class="logoutButton logout" style="display:none"><a onclick="javascript:logout('../lib/logoff.php')" href="javascript:;">Bienvenido <?php if(isset($_SESSION['USU_NAME'])){ echo $_SESSION['USU_NAME'];} ?> <br /> Logout</a></div> 
<div class="loginbox">
    <form id="frm_login" name="frm_login" method="post" action="">
      <p>
        <label for="log_username">Usuario: </label>
        <input name="log_username" type="text" class="input-width" id="log_username" />
      </p>
      <p>
        <label for="log_password">Password: </label>
        <input name="log_password" type="password" class="input-width" id="log_password" /><span class="submit"><a href="javascript:validarIngreso('../lib/validarUsuario.php');">&nbsp;</a> </span>
      </p>
    </form>
  </div><!-- end .loginbox--><!-- #EndLibraryItem --><!-- #BeginLibraryItem "/Library/logo.lbi" --><a href="#"><img src="../images/logo2.jpg" alt="Insert Logo Here" name="Insert_logo" width="180" height="90" id="Insert_logo" style="background: #f7d10e; display:block;" /></a><!-- #EndLibraryItem --><!-- #BeginLibraryItem "/Library/navigation.lbi" --><div class="navigation">
      <ul class="nav">
        <li><a id="lnkEmp" class="lnkPrin" href="#">Empleo</a></li>
        <li><a id="lnkFor" class="lnkPrin" href="#">Formacion</a></li>
        <li><a id="lnkOri" class="lnkPrin" href="#">Orientacion</a></li>
        <li><a id="lnkRec" class="lnkPrin" href="#">Recepcion</a></li>
      </ul>
    </div><!-- #EndLibraryItem --><!-- end .navigation-->
  
  
  
  <!-- end .header --></div>
  <div class="sidebar1"><!-- #BeginLibraryItem "/Library/sidebar navigation.lbi" -->
      <div class="arrowlistmenu">
          <div id="menCita" class="menuShow" style="display:none">
           <h3 class="menuheader expandable">Citas</h3>
            <ul class="categoryitems captura">
              <li><a href="../cita/cit_registrar.php">Registro Cita</a></li>
              <li><a href="../cita/cit_buscar.php">Buscar Cita </a></li>
              <li><a href="../cita/cit_programadas.php" >Citas Programadas</a></li>
              <li><a href="../cita/cit_desbloq.php">Habilitar Usuario</a></li>
            </ul>
          </div>
          <div id="menRece" class="menuShow" style="display:none">
	  <h3 class="menuheader expandable">Recepcion</h3>
            <ul class="categoryitems captura">
              <li><a href="../rece/exp_crear.php" >Crear Expediente</a></li>
			  <li><a href="../regi/regi_interesados.php">Registro Interesados</a></li>
              <li><a href="../rece/exp_buscar.php">Buscar Expediente</a></li>
            </ul>
          </div>
          <div id="menOrie" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Orientacion</h3>
            <ul class="categoryitems captura">
              <li><a href="ori_busqueda_exp.php">Busqueda Orientacion</a></li>
              <li><a href="ori_busqueda_ori.php">Consultas de Orientacion</a></li>
            </ul>
          </div>
          <div id="menForm" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Formacion</h3>
            <ul class="categoryitems captura">
              <li><a href="../form/for_regformativa.php">Ingreso de Institucion</a></li>
              <li><a href="../form/for_regcurso.php?For=">Ingreso de Curso</a></li>
			  <li><a href="../form/for_listar_personas.php">Candidatos a Curso</a></li>
              <li><a href="../form/for_busformativa.php" >Busqueda de Institucion</a></li>
              <li><a href="../form/for_buscurso.php" >Busqueda de Curso</a></li>
            </ul>
          </div>
	  <div id="menEmpl" class="menuShow" style="display:none">			
	    <h3 class="menuheader expandable">Empleo</h3>
            <ul class="categoryitems captura">
             <li><a href="../empl/emp_registrar.php">Ingreso de Empresa</a></li>
             <li><a href="../empl/emp_registrar_oferta.php?Empresa=">Registrar Oferta</a></li>
             <li><a href="../empl/emp_buscar.php">Busqueda de Empresa</a></li>
             <li><a href="../empl/emp_buscar_oferta.php">Busqueda de Ofertas</a></li>
             <li><a href="../empl/emp_listar_candidatos.php">Busqueda de Candidatos</a></li>
            </ul>
          </div>
          <div id="menSegu" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Seguimiento</h3>
            <ul class="categoryitems captura">
              <li><a href="../acci/acc_regaccion.php">Registro de Seguimiento</a></li>
              <li><a href="../acci/acc_busaccion.php">Busqueda de Seguimiento</a></li>
            </ul>
          </div>
          <div id="menRepo" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Reportes</h3>
            <ul class="categoryitems captura">
              <li><a href="../repo/rep_buscar_curriculo.php">Generacion de Curriculum</a></li>
              <li><a href="../repo/rep_orientacion.php">Reportes Orientacion</a></li>
              <li><a href="../repo/rep_formacion.php">Reportes Formacion</a></li>
              <li><a href="../repo/repo_empleo.php" >Reportes Empleo</a></li>
              <li><a href="../repo/rep_acciones.php" >Reportes Acciones</a></li>
			  <li><a href="../repo/rep_interesados.php">Reportes Interesados</a></li>
			</ul>
          </div>
		   
           <div id="menVist" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Buscar Expediente</h3>
            <ul class="categoryitems captura">
                <li><a href="../vist/vis_busqueda.php">B&uacute;squeda de Expediente</a></li>
            </ul>
          </div>
          <div id="menAdmi" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Administracion</h3>
            <ul class="categoryitems">
              <li id="menSusu" style="display:none"><a href="#" class="subexpandable">Usuario</a>
                <ul class="subcategoryitems">
                    <li><a href="../admo/usu_registrar.php" >Registro de Usuario</a></li>
                    <li><a href="../admo/usu_buscar.php">Busqueda de Usuario</a></li>
                    <li><a href="../admo/usu_habilitar.php">Desbloqueo de Usuario</a></li>
         	</ul>
              </li> 
              <li id="menCata" style="display:none"><a href="#" class="subexpandable">Catalogos</a>
                <ul class="subcategoryitems">
                  <li><a href="../admo/cat_registrar.php">Registro de Catalogo</a></li>
                  <li><a href="../admo/cat_buscar.php">Busqueda de Catalogo</a></li> 
                </ul>
              </li>
            </ul>
          </div>  
          <div id="menInst" class="menuShow" style="display:none">
              <h3 class="menuheader expandable">Instituci&oacute;n</h3>
            <ul class="categoryitems captura">
              <li><a href="../form/for_regcurso.php">Ingreso de cursos</a></li>
              <li><a href="../form/for_cursos_por_institucion_capacitadora.php">Ver cursos</a></li>
            </ul>
          </div>
          <div id="menEmpr" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Empresa</h3>
            <ul class="categoryitems captura">
              <li><a href="../empl/emp_registrar_oferta.php">Ingreso de oferta</a></li>
              <li><a href="../empl/emp_ofertas_x_empresa_institucion.php">Ver ofertas</a></li>
            </ul>
          </div>
		  <div id="menCamP" class="menuShow" style="display:none">
            <h3 class="menuheader expandable">Mi cuenta</h3>
            <ul class="categoryitems captura">
              <li><a href="../admo/usu_modpass.php">Cambio de contraseña</a></li>
            </ul>
          </div>
          </div><!-- #EndLibraryItem --><p></p> 
         <a href="#"><h4 align="center">Ayuda
        <img src="../images/ayuda.gif" width="107" height="98" /></h4></a>   
    <!-- end .sidebar1 --></div>
  <div class="content"><!-- InstanceBeginEditable name="contenido" -->
  <form action="" method="post" name="formpres" class="frm" id="formpres">
   <p>
	<?php
		echo "<h3><font color='#0000A0'> Informaci&oacute;n del expediente $Codexp</font></h3>";
	?>
     	<p><i>Favor completar la informaci&oacute;n siguiente para complementar el expediente:</i></p>
       
      </p>
<p>
	<?php
		echo "<label for='txtNomEXP'>Nombre completo: </label>
			 <b><i><label>$NomExp $ApeExp</label></b></i>
			  <input type='hidden' name='txtCodEXP' id='txtCodEXP' value= '$Codexp'/>";
	?>
</p>
<p></p>
<p></p>

</form>
<div id="tabs">
  <ul>
      <li><a href="#fragment-1"><span>Datos discapacidad</span></a></li>
      <li><a href="#fragment-2"><span>Formaci&oacute;n de persona</span></a></li>
      <li><a href="#fragment-3"><span>Experiencia laboral</span></a></li>
      <li><a href="#fragment-4"><span>Intereses profesionales</span></a></li>
      <li><a href="#fragment-5"><span>Informe Orientaci&oacute;n</span></a></li>
    </ul>

    <form action="" method="post" name="form5" class="frm" id="form5">
     
	<div id="fragment-1">
	<p></p>
        <h6>Tipo de Discapacidad:
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6>
        <p>
                <label for="selestado"><span class="Estilo6">*</span>Estado Orientaci&oacute;n: </label>
                <select name="selestado" id="selestado" class="blkDD" style="width:150px">
                        <?php
                                estado_orientacion();
                        ?>
                </select>
                
        </p>
        <p>&nbsp;</p>
        <p id="pselde1" class="pselde1" style="display: block;">
          <label for="seldef1"><span class="Estilo6">*</span>Deficiencia:</label>
          <select name="seldef1" id="seldef1" class="blkDD" style="width:150px">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoDeficiencia;
                ?>
          </select>
          <label for="seland1">&nbsp;&nbsp;<span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span>Año:</label>
          <select name="seland1" id="seland1" class="blkDD">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    obtener_anio();
                ?>
          </select>

        </p>
	<p class="pselde1" style="display: block;">
            <label for="selod1"><span class="Estilo6">*</span>Origen deficiencia:</label>
            <select name="selod1" id="selod1" class="blkDD" style="width:150px">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $OrigenDeficiencia;
                ?>
            </select>
		  <label for="selgd1">&nbsp;&nbsp;<span class="Estilo6">*</span>Grado &nbsp;&nbsp;deficiencia:</label>
          <select name="selgd1" id="selgd1" class="blkDD">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $GradoDeficiencia;
              ?>
          </select>
	</p>
	<p class="pselde1" style="display: block;">
          <label for="txtdi1">&nbsp;&nbsp;&nbsp;&nbsp;Diagn&oacute;stico:</label>
          <textarea name="txtdi1" id="txtdi1" cols="35" rows="5" style="width:397px" onkeypress="return permitir(event,'car_gen')" class="blkDD"></textarea>
        </p>
	<p>
	  <label for="selpcd">Posee certificado discapacidad:</label>
          <select name="selpcd" id="selpcd" class="change blkDD" onchange="javascript:MostrarDatePicker('1');">
			<option value="N" selected="selected"> No </option>
			<option value="S"> Si </option>
          </select>
          <label for="selexp" class="exp" style="display: none;">&nbsp;&nbsp;<span class="Estilo6">*</span>Extendido &nbsp;&nbsp;por:</label>
          <select name="selexp" id="selexp" class="exp blkDD" style="display: none;">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo institucion_certificado_discapacidad();
              ?>
          </select>
          <label for="selexpanio" class="exp" style="display: none;">&nbsp;&nbsp;<span class="Estilo6">*</span>Fecha de emisi&oacute;n &nbsp;&nbsp;certificado:</label>
          <input type="text" name="selexpanio" id="selexpanio" readonly="readonly" class="datepicker exp blkDD" style="display: none;" value="" />

        </p>
        <p>&nbsp;</p>
        
        <p><h6>Caracteristicas de discapacidad
         <img id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
		 
        <p id="pseltd1" class="pseltd1" style="display: block;">
          <label for="seltd1"><span class="Estilo6">*</span>Tipo de discapacidad:</label>
          <select name="seltd1" id="seltd1" class="disxml blkDD" style="width:150px" onChange="javascript:obtSubDiscapacidad('1')">
		<option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoDeficiencia;
                ?>
          </select>
          <label for="selsd1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <span class="Estilo6">*</span>Subtipo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;discapacidad:</label>
          <select name="selsd1" id="selsd1" class="disxml blkDD" style="width:300px">
			<option value="" selected="selected"> Seleccione </option>
          </select>
		  <a href="javascript:agrOpciones('1', 'pseltd', 'lnk', 5);" class="myButton lnk1"> + </a>
        </p>
        <p class="pseltd1" style="display: block;">
            <label for="selayt1">Ayuda t&eacute;cnica:</label>
            <select name="selayt1" id="selayt1" onChange="javascript:mostrarAYT('1');" class="blkDD" style="width:150px">
                            <option value="N" selected="selected"> No </option>
                            <option value="S"> Si </option>
             </select>
             <label for="seltat1" class="tipay1" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
			 *</span>Tipo de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ayuda t&eacute;cnica:</label>
             <select name="seltat1" id="seltat1" class="tipay1 disxml blkDD" style="display: none; width:300px">
                  <option value="" selected="selected"> Seleccione </option>
                  <?php
                    tipo_ayuda_tecnica();
                  ?>
             </select>
        </p>
        <p class="pseltd1" style="display: block;">&nbsp;</p>
	<p id="pseltd2" class="pseltd2" style="display: none;">
          <label for="seltd2"><span class="Estilo6">*</span>Tipo de discapacidad:</label>
          <select name="seltd2" id="seltd2" class="disxml blkDD" onChange="javascript:obtSubDiscapacidad('2')" style="width:150px">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoDeficiencia;
                ?>
          </select>
          <label for="selsd2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
		  *</span>Subtipo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;discapacidad:</label>
          <select name="selsd2" id="selsd2" class="disxml blkDD" style="width:300px">
			<option value="" selected="selected"> Seleccione </option>
          </select>
		  <a href="javascript:agrOpciones('2', 'pseltd', 'lnk', 5);" class="myButton lnk2"> + </a>
                  <a href="javascript:quiOpciones('2', 'pseltd', 'lnk');" class="myButton lnk2"> - </a>
                  
	</p>
        <p class="pseltd2" style="display: none;">
            <label for="selayt2">Ayuda t&eacute;cnica:</label>
            <select name="selayt2" id="selayt2" onChange="javascript:mostrarAYT('2');" class="blkDD" style="width:150px">
                            <option value="N" selected="selected"> No </option>
                            <option value="S"> Si </option>
             </select>
             <label for="seltat2" class="tipay2" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
			 *</span>Tipo de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ayuda t&eacute;cnica:</label>
             <select name="seltat2" id="seltat2" class="tipay2 disxml blkDD" style="display: none; width:300px">
                  <option value="" selected="selected"> Seleccione </option>
                  <?php
                    tipo_ayuda_tecnica();
                  ?>
             </select>
        </p>
        <p class="pseltd2" style="display: none;">&nbsp;</p>
	<p id="pseltd3" class="pseltd3" style="display: none;">
          <label for="seltd3"><span class="Estilo6">*</span>Tipo de discapacidad:</label>
          <select name="seltd3" id="seltd3" class="disxml blkDD" onChange="javascript:obtSubDiscapacidad('3')" style="width:150px">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoDeficiencia;
                ?>
          </select>
          <label for="selsd3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
		  *</span>Subtipo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;discapacidad:</label>
          <select name="selsd3" id="selsd3" class="disxml blkDD" style="width:300px">
			<option value="" selected="selected"> Seleccione </option>
          </select>
		  <a href="javascript:agrOpciones('3', 'pseltd', 'lnk', 5);" class="myButton lnk3"> + </a>
                  <a href="javascript:quiOpciones('3', 'pseltd', 'lnk');" class="myButton lnk3"> - </a>
		</p>
        <p class="pseltd3" style="display: none;">
            <label for="selayt3">Ayuda t&eacute;cnica:</label>
            <select name="selayt3" id="selayt3" onChange="javascript:mostrarAYT('3');" class="blkDD" style="width:150px">
                            <option value="N" selected="selected"> No </option>
                            <option value="S"> Si </option>
             </select>
             <label for="seltat3" class="tipay3" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
			 *</span>Tipo de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ayuda t&eacute;cnica:</label>
             <select name="seltat3" id="seltat3" class="tipay3 disxml blkDD" style="display: none; width:300px">
                  <option value="" selected="selected"> Seleccione </option>
                  <?php
                    tipo_ayuda_tecnica();
                  ?>
             </select>
        </p>
        <p class="pseltd3" style="display: none;">&nbsp;</p>
	<p id="pseltd4" class="pseltd4" style="display: none;">
          <label for="seltd4"><span class="Estilo6">*</span>Tipo de discapacidad:</label>
          <select name="seltd4" id="seltd4" class="disxml blkDD" onChange="javascript:obtSubDiscapacidad('4')" style="width:150px">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoDeficiencia;
                ?>
          </select>
		  <label for="selsd4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>
		  Subtipo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;discapacidad:</label>
          <select name="selsd4" id="selsd4" class="disxml blkDD" style="width:300px">
			<option value="" selected="selected"> Seleccione </option>
          </select>
		  <a href="javascript:agrOpciones('4', 'pseltd', 'lnk', 5);" class="myButton lnk4"> + </a>
                  <a href="javascript:quiOpciones('4', 'pseltd', 'lnk');" class="myButton lnk4"> - </a>
		</p>
        <p class="pseltd4" style="display: none;">
            <label for="selayt4">Ayuda t&eacute;cnica:</label>
            <select name="selayt4" id="selayt4" onChange="javascript:mostrarAYT('4');" class="blkDD" style="width:150px">
                            <option value="N" selected="selected"> No </option>
                            <option value="S"> Si </option>
             </select>
             <label for="seltat4" class="tipay4" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
			 *</span>Tipo de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ayuda t&eacute;cnica:</label>
             <select name="seltat4" id="seltat4" class="tipay4 disxml blkDD" style="display: none; width:300px">
                  <option value="" selected="selected"> Seleccione </option>
                  <?php
                    tipo_ayuda_tecnica();
                  ?>
             </select>
        </p>
        <p class="pseltd4" style="display: none;">&nbsp;</p>
	<p id="pseltd5" class="pseltd5" style="display: none;">
          <label for="seltd5"><span class="Estilo6">*</span>Tipo de discapacidad:</label>
          <select name="seltd5" id="seltd5" class="disxml blkDD" onChange="javascript:obtSubDiscapacidad('5')" style="width:150px">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoDeficiencia;
                ?>
          </select>
		  <label for="selsd5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>
		  Subtipo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;discapacidad:</label>
          <select name="selsd5" id="selsd5" class="disxml blkDD" style="width:300px">
			<option value="" selected="selected"> Seleccione </option>
          </select>
		  
                  <a href="javascript:quiOpciones('5', 'pseltd', 'lnk');" class="myButton lnk5"> - </a>
		</p>
        <p class="pseltd5" style="display: none;">
            <label for="selayt5">Ayuda t&eacute;cnica:</label>
            <select name="selayt5" id="selayt5" onChange="javascript:mostrarAYT('5');" class="blkDD"  style="width:150px">
                            <option value="N" selected="selected"> No </option>
                            <option value="S"> Si </option>
             </select>
             <label for="seltat5" class="tipay5" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">
			 *</span>Tipo de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ayuda t&eacute;cnica:</label>
             <select name="seltat5" id="seltat5" class="tipay5 disxml blkDD" style="display: none; width:300px">
                  <option value="" selected="selected"> Seleccione </option>
                  <?php
                    tipo_ayuda_tecnica();
                  ?>
             </select>
        </p>
        <p class="pseltd5" style="display: none;">&nbsp;</p>
		<p>
          <label for="txtobtd">Observaciones:</label>
          <textarea name="txtobtd" id="txtobtd" cols="45" rows="5" style="width:300px" onkeypress="return permitir(event,'car_gen')" class="blkDD"></textarea>
        </p>
	<p>&nbsp;</p>
	<p>
          <label for="seltra">Tratamiento:</label>
          <select name="seltra" id="seltra" class="blkDD">
            <option value="N" selected="selected"> No </option>
            <option value="S"> Si </option>
          </select>
          <label for="txtctr" class="trata" style="display: none;">&nbsp;&nbsp;<span class="Estilo6">*</span>Cual?</label>
          <textarea name="txtctr" id="txtctr" cols="45" rows="5" class="trata blkDD" style="display: none;" onkeypress="return permitir(event,'car_gen')"></textarea>
          <label for="txthtr" class="trata" style="display: none;">&nbsp;&nbsp;<span class="Estilo6">*</span>Horario:</label>
          <textarea name="txthtr" id="txthtr" cols="45" rows="5" class="trata blkDD" style="display: none;" onkeypress="return permitir(event,'car_gen')" maxlength="60"></textarea>
        </p>

        <p>
        <label for="seldtm"><span class="Estilo6">*</span>Destreza manual:</label>
          <select name="seldtm" id="seldtm" class="blkDD">
			<option value="" selected="selected"> Seleccione </option>
                        <?php
                            echo opciones_basicas();
                        ?>
          </select>
          <label for="txtdtm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Comentarios:</label>
          <textarea name="txtdtm" id="txtdtm" cols="45" rows="5" style="width:300px" onkeypress="return permitir(event,'car_gen')" class="blkDD"></textarea>        
        </p>
        <p>
          <label for="seldes"><span class="Estilo6">*</span>Desplazamiento:</label>
          <select name="seldes" id="seldes" class="blkDD">
			<option value="" selected="selected"> Seleccione </option>
                        <?php
                            echo opciones_basicas();
                        ?>
          </select>
          <label for="txtdes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Comentarios:</label>
          <textarea name="txtdes" id="txtdes" cols="45" rows="5" style="width:300px" onkeypress="return permitir(event,'car_gen')" class="blkDD"></textarea> 
        </p>
        <p>
          <label for="selpos"><span class="Estilo6">*</span>Posiciones:</label>
          <select name="selpos" id="selpos" class="blkDD">
		<option value="" selected="selected"> Seleccione </option>
                <?php
                    echo opciones_posicion();
                ?>
          </select>
          <label for="txtpos">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Comentarios:</label>
          <textarea name="txtpos" id="txtpos" cols="45" rows="5" style="width:300px" onkeypress="return permitir(event,'car_gen')" class="blkDD"></textarea>
        </p>
        <p>
          <label for="selree"><span class="Estilo6">*</span>Realizar esfuerzos:</label>
            <select name="selree" id="selree" class="blkDD">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo opciones_esfuerzo();
                ?>
            </select>
          <label for="txtree">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Comentarios:</label>
          <textarea name="txtree" id="txtree" cols="45" rows="5" style="width:300px" onkeypress="return permitir(event,'car_gen')" class="blkDD"></textarea>
        </p>
        <p>
          <label for="seltpe">Tomar pesos:</label>
          <select name="seltpe" id="seltpe" class="blkDD">
            <option value="N" selected="selected"> No </option>
			<option value="S"> Si </option>
          </select>
          <label for="selmov" class="topes" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>Movilidad:</label>
          <select name="selmov" id="selmov" class="topes blkDD" style="display: none;">
            <option value="" selected="selected"> Seleccione </option>
            <option value="N" selected="selected"> No </option>
            <option value="S"> Si </option>
          </select>
            <label for="txtcpe" class="topes" style="display: none;">&nbsp;&nbsp;<span class="Estilo6">*</span>Capacidad peso &nbsp;&nbsp;(lb):</label>
          <input type="text" name="txtcpe" id="txtcpe" class="topes blkDD mskCero" style="display: none;" value="0" onkeypress="return permitir(event,'num')" maxlength="9"/>
        </p>
        <p>
	  
          <label for="selmdi">Manejo de dinero:</label>
          <select name="selmdi" id="selmdi" class="blkDD">
            <option value="N" selected="selected"> No </option>
			<option value="S"> Si </option>
          </select>
          <label for="txtmdc" class="mandi" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>Comentario:</label>
          <textarea name="txtmdc" id="txtmdc" cols="45" rows="5" class="mandi blkDD" style="display: none; width:300px" onkeypress="return permitir(event,'car_gen')"></textarea>
        </p>
		<p>&nbsp;</p>
        <p>
          <a id="btnDD" href="javascript:validar_ori_DD();" class="myButton"> Guardar Informaci&oacute;n</a>
        </p>
        <p>&nbsp;</p>
      </form>
    </div>
	
    <div id="fragment-2">
      <form action="" method="post" name="form1" class="frm" id="form1">
        <h6>Campo formaci&oacute;n
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6>

        <p>
          <label for="selestforma"><span class="Estilo6">*</span>Estado formaci&oacute;n:</label>
          <select name="selestforma" id="selestforma" class="blkCF" style="width:150px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $EstadoFormacion;
            ?>
          </select>
        </p>
        <p>&nbsp;</p>
        <p id="pseltif1" class="pseltif1" style="display: block;">
          <label for="seltif1">Tipo de formaci&oacute;n:</label>
          <select name="seltif1" id="seltif1" class="selHor cfXML blkCF"  style="width:200px" onChange="javascript:obtTitFormacion('1')">
                <option value="" selected="selected"> Seleccione </option>
                <?php
                    echo $TipoFormacion;
                ?>
          </select>
		  <a href="javascript:agrOpciones('1', 'pseltif', 'lnkf', 5);" class="myButton lnkf1"> + </a>
        </p>
        <p class="pseltif1" style="display: block;">
          <label for="seltit1">Titulo:</label>
          <select name="seltit1" id="seltit1" class="year-box cfXML blkCF" style="width:200px">
              <option value="" selected="selected"> Seleccione </option>
          </select>
          <label for="txtinst1" class="year-box">CE/I/U/C:</label>
          <input name="txtinst1" type="text" id="txtinst1" size="6" class="cfXML blkCF" onkeypress="return permitir(event,'num_carSsp')" maxlength="40"/>
          <label for="txtane1" class="year-box blkCF">&nbsp;&nbsp;Año:</label>
          <select name="txtane1" id="txtane1" class="year-box cfXML blkCF">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    obtener_anio();
                ?>
          </select>
          <label for="txthor1" class="year-box seltif1" style="display: none;">&nbsp;&nbsp;Horas:</label>
          <input name="txthor1" type="text" class="year-box seltif1 cfXML blkCF mskCero" id="txthor1" size="6" style="display: none;" onkeypress="return permitir(event,'num')" maxlength="11" value="0"/>
        </p>
        <p class="pseltif2" style="display: none;">&nbsp;</p>
        <p id="pseltif2" class="pseltif2" style="display: none;">
          <label for="seltif2">Tipo de Formaci&oacute;n:</label>
          <select name="seltif2" id="seltif2" class="selHor cfXML blkCF" style="width:200px" onChange="javascript:obtTitFormacion('2')">
			<option value="" selected="selected"> Seleccione </option>
                        <?php
                            echo $TipoFormacion;
                        ?>
          </select>
		  <a href="javascript:agrOpciones('2', 'pseltif', 'lnkf', 5);" class="myButton lnkf2"> + </a>
                  <a href="javascript:quiOpciones('2', 'pseltif', 'lnkf');" class="myButton lnkf2"> - </a>
        </p>
        <p class="pseltif2" style="display: none;">
          <label for="seltit2">Titulo:</label>
          <select name="seltit2" id="seltit2" class="year-box cfXML blkCF" style="width:200px">
              <option value="" selected="selected"> Seleccione </option>
          </select>
          <label for="txtinst2" class="year-box">CE/I/U/C:</label>
          <input name="txtinst2" type="text" id="txtinst2" size="6" class="cfXML blkCF" onkeypress="return permitir(event,'num_carSsp')" maxlength="40"/>
          <label for="txtane2" class="year-box">&nbsp;&nbsp;Año:</label>
          <select name="txtane2" id="txtane2" class="year-box cfXML blkCF">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    obtener_anio();
                ?>
          </select>
	  <label for="txthor2" class="year-box seltif2" style="display: none;">&nbsp;&nbsp;Horas:</label>
          <input name="txthor2" type="text" class="year-box seltif2 cfXML blkCF mskCero" id="txthor2" size="6" style="display: none;" onkeypress="return permitir(event,'num')" maxlength="11" value="0"/>
        </p>
        <p class="pseltif3" style="display: none;">&nbsp;</p>
        <p id="pseltif3" class="pseltif3" style="display: none;">
          <label for="seltif3">Tipo de Formaci&oacute;n:</label>
          <select name="seltif3" id="seltif3" class="selHor cfXML blkCF"  style="width:200px" onChange="javascript:obtTitFormacion('3')">
			<option value="" selected="selected"> Seleccione </option>
                        <?php
                            echo $TipoFormacion;
                        ?>
          </select>
		  <a href="javascript:agrOpciones('3', 'pseltif', 'lnkf', 5);" class="myButton lnkf3"> + </a>
                  <a href="javascript:quiOpciones('3', 'pseltif', 'lnkf');" class="myButton lnkf3"> - </a>
        </p>
        <p class="pseltif3" style="display: none;">
          <label for="seltit3">Titulo:</label>
          <select name="seltit3" id="seltit3" class="year-box cfXML blkCF" style="width:200px">
              <option value="" selected="selected"> Seleccione </option>
          </select>
          <label for="txtinst3" class="year-box">CE/I/U/C:</label>
          <input name="txtinst3" type="text" id="txtinst3" size="6" class="cfXML blkCF" onkeypress="return permitir(event,'num_carSsp')" maxlength="40"/>
          <label for="txtane3" class="year-box">&nbsp;&nbsp;Año:</label>
          <select name="txtane3" id="txtane3" class="year-box cfXML blkCF">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    obtener_anio();
                ?>
          </select>
		  <label for="txthor3" class="year-box seltif3" style="display: none;">&nbsp;&nbsp;Horas:</label>
          <input name="txthor3" type="text" class="year-box seltif3 cfXML blkC mskCeroF" id="txthor3" size="6" style="display: none;" onkeypress="return permitir(event,'num')" maxlength="11" value="0"/>
        </p>
        <p class="pseltif4" style="display: none;">&nbsp;</p>
        <p id="pseltif4" class="pseltif4" style="display: none;">
          <label for="seltif4">Tipo de Formaci&oacute;n:</label>
          <select name="seltif4" id="seltif4" class="selHor cfXML blkCF" style="width:200px" onChange="javascript:obtTitFormacion('4')">
			<option value="" selected="selected"> Seleccione </option>
                        <?php
                            echo $TipoFormacion;
                        ?>
          </select>
		  <a href="javascript:agrOpciones('4', 'pseltif', 'lnkf', 5);" class="myButton lnkf4"> + </a>
                  <a href="javascript:quiOpciones('4', 'pseltif', 'lnkf');" class="myButton lnkf4"> - </a>
        </p>
        <p class="pseltif4" style="display: none;">
          <label for="seltit4">Titulo:</label>
          <select name="seltit4" id="seltit4" class="year-box cfXML blkCF" style="width:200px">
              <option value="" selected="selected"> Seleccione </option>
          </select>
          <label for="txtinst4" class="year-box">CE/I/U/C:</label>
          <input name="txtinst4" type="text" id="txtinst4" size="6" class="cfXML blkCF" onkeypress="return permitir(event,'num_carSsp')" maxlength="40"/>
          <label for="txtane4" class="year-box">&nbsp;&nbsp;Año:</label>
          <select name="txtane4" id="txtane4" class="year-box cfXML blkCF">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    obtener_anio();
                ?>
          </select>
		  <label for="txthor4" class="year-box seltif4" style="display: none;">&nbsp;&nbsp;Horas:</label>
          <input name="txthor4" type="text" class="year-box seltif4 cfXML blkCF mskCero" id="txthor4" size="6" style="display: none;" onkeypress="return permitir(event,'num')" maxlength="11" value="0"/>
        </p>
        <p class="pseltif5" style="display: none;">&nbsp;</p>
        <p id="pseltif5" class="pseltif5" style="display: none;">
          <label for="seltif5">Tipo de Formaci&oacute;n:</label>
          <select name="seltif5" id="seltif5" class="selHor cfXML blkCF" style="width:200px" onChange="javascript:obtTitFormacion('5')">
			<option value="" selected="selected"> Seleccione </option>
                        <?php
                            echo $TipoFormacion;
                        ?>
          </select>
		  <a href="javascript:quiOpciones('5', 'pseltif', 'lnkf');" class="myButton lnkf5"> - </a>
        </p>
        <p class="pseltif5" style="display: none;">
          <label for="seltit5">Titulo:</label>
          <select name="seltit5" id="seltit5" class="year-box cfXML blkCF" style="width:200px">
              <option value="" selected="selected"> Seleccione </option>
          </select>
          <label for="txtinst5" class="year-box">CE/I/U/C:</label>
          <input name="txtinst5" type="text" id="txtinst5" size="6" class="cfXML blkCF" onkeypress="return permitir(event,'num_carSsp')" maxlength="40"/>
          <label for="txtane5" class="year-box">&nbsp;&nbsp;Año:</label>
          <select name="txtane5" id="txtane5" class="year-box cfXML blkCF">
            <option value="" selected="selected"> Seleccione </option>
                <?php
                    obtener_anio();
                ?>
          </select>
		  <label for="txthor5" class="year-box seltif5" style="display: none;">&nbsp;&nbsp;Horas:</label>
          <input name="txthor5" type="text" class="year-box seltif5 cfXML blkCF mskCero" id="txthor5" size="6" style="display: none;" onkeypress="return permitir(event,'num')" maxlength="11" value="0"/>
        </p>
		<p>&nbsp;</p>
        <p id="pintfor1" class="pintfor1" style="display: block;">
          <label for="selintf1">Inter&eacute;s formaci&oacute;n:</label>
          <select name="selintf1" id="selintf1" class="ifXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $TituloFormacion;
              ?>
          </select>
          <a href="javascript:agrOpciones('1', 'pintfor', 'lnkfo', 5);" class="myButton lnkfo1"> + </a>
        </p>
        
        <p class="pintfor1" style="display: block;">
          <label for="txtobof1">Observaci&oacute;n:</label>
          <textarea name="txtobof1" class="ifXML blkCF" id="txtobof1" cols="45" rows="5" style="width:295px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkfors1" type="checkbox" class="year-box ifXML blkCF" id="chkfors1" />
          <label for="chkfors1">Solventado</label>
        </p>
	<p id="pintfor2" class="pintfor2" style="display: none;">
          <label for="selintf2">Inter&eacute;s formaci&oacute;n:</label>
          <select name="selintf2" id="selintf2" class="ifXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $TituloFormacion;
              ?>
          </select>
          <a href="javascript:agrOpciones('2', 'pintfor', 'lnkfo', 5);" class="myButton lnkfo2"> + </a>
          <a href="javascript:quiOpciones('2', 'pintfor', 'lnkfo');" class="myButton lnkfo2"> - </a>
		</p>
        <p class="pintfor2" style="display: none;">
          <label for="txtobof2">Observaci&oacute;n:</label>
          <textarea name="txtobof2" id="txtobof2" class="ifXML blkCF" cols="45" rows="5" style="width:295px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkfors2" type="checkbox" class="year-box ifXML blkCF" id="chkfors2" />
          <label for="chkfors2">Solventado</label>
        </p>
		<p id="pintfor3" class="pintfor3" style="display: none;">
          <label for="selintf3">Inter&eacute;s formaci&oacute;n:</label>
          <select name="selintf3" id="selintf3" class="ifXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $TituloFormacion;
              ?>
          </select>
          <a href="javascript:agrOpciones('3', 'pintfor', 'lnkfo', 5);" class="myButton lnkfo3"> + </a>
          <a href="javascript:quiOpciones('3', 'pintfor', 'lnkfo');" class="myButton lnkfo3"> - </a>
		</p>
		<p class="pintfor3" style="display: none;">
          <label for="txtobof3">Observaci&oacute;n:</label>
          <textarea name="txtobof3" id="txtobof3" class="ifXML blkCF" cols="45" rows="5" style="width:295px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkfors3" type="checkbox" class="year-box ifXML blkCF" id="chkfors3" />
          <label for="chkfors3">Solventado</label>
        </p>
		<p id="pintfor4" class="pintfor4" style="display: none;">
          <label for="selintf4">Inter&eacute;s formaci&oacute;n:</label>
          <select name="selintf4" id="selintf4" class="ifXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $TituloFormacion;
              ?>
          </select>
          <a href="javascript:agrOpciones('4', 'pintfor', 'lnkfo', 5);" class="myButton lnkfo4"> + </a>
          <a href="javascript:quiOpciones('4', 'pintfor', 'lnkfo');" class="myButton lnkfo4"> - </a>
		</p>
        <p class="pintfor4" style="display: none;">
          <label for="txtobof4">Observaci&oacute;n:</label>
          <textarea name="txtobof4" id="txtobof4" class="ifXML blkCF" cols="45" rows="5" style="width:295px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkfors4" type="checkbox" class="year-box ifXML blkCF" id="chkfors4" />
          <label for="chkfors4">Solventado</label>
        </p>
		<p id="pintfor5" class="pintfor5" style="display: none;">
          <label for="selintf5">Inter&eacute;s formaci&oacute;n:</label>
          <select name="selintf5" id="selintf5" class="ifXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $TituloFormacion;
              ?>
          </select>
          <a href="javascript:quiOpciones('5', 'pintfor', 'lnkfo');" class="myButton lnkfo5"> - </a>
        </p>
        <p class="pintfor5" style="display: none;">
          <label for="txtobof5">Observaci&oacute;n:</label>
          <textarea name="txtobof5" id="txtobof5" class="ifXML blkCF" cols="55" rows="5" style="width:295px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkfors5" type="checkbox" class="year-box ifXML blkCF" id="chkfors5" />
          <label for="chkfors5">Solventado</label>
        </p>
        <br clear="all" />
		  <p><h6>Idioma
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        <table width="100%" border="0" id="idioma2">
          <tr>
            <th scope="col">Idioma</th>
            <th scope="col">Habla </th>
            <th scope="col">Escribe</th>
            <th scope="col">Conversaci&oacute;n</th>
            <th scope="col">&nbsp;</th>
          </tr>
          <tr id="tidm1" class="tidm1" style="display: table-row;">
            <td><select name="selidm1" id="selidm1" class="idXML blkCF" style="width:250px">
                   <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $Idiomas;
                    ?>
            </select></td>
            <td><select name="selhab1" id="selhab1" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selesc1" id="selesc1" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selcon1" id="selcon1" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><a href="javascript:agrOpciones('1', 'tidm', 'lnkt', 5);" class="myButton lnkt1"> + </a></td>
          </tr>
		  <tr id="tidm2" class="tidm2" style="display: none;">
            <td><select name="selidm2" id="selidm2" class="idXML blkCF" style="width:250px">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $Idiomas;
                    ?>
            </select></td>
            <td><select name="selhab2" id="selhab2" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selesc2" id="selesc2" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selcon2" id="selcon2" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td>
                <a href="javascript:agrOpciones('2', 'tidm', 'lnkt', 5);" class="myButton lnkt2"> + </a>
                <a href="javascript:quiOpciones('2', 'tidm', 'lnkt');" class="myButton lnkt2"> - </a>
            </td>
          </tr>
		  <tr id="tidm3" class="tidm3" style="display: none;">
            <td><select name="selidm3" id="selidm3" class="idXML blkCF" style="width:250px">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $Idiomas;
                    ?>
            </select></td>
            <td><select name="selhab3" id="selhab3" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selesc3" id="selesc3" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selcon3" id="selcon3" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td>
                <a href="javascript:agrOpciones('3', 'tidm', 'lnkt', 5);" class="myButton lnkt3">+</a>
                <a href="javascript:quiOpciones('3', 'tidm', 'lnkt');" class="myButton lnkt3"> - </a>
            </td>
          </tr>
		  <tr id="tidm4" class="tidm4" style="display: none;">
            <td><select name="selidm4" id="selidm4" class="idXML blkCF" style="width:250px">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $Idiomas;
                    ?>
            </select></td>
            <td><select name="selhab4" id="selhab4" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selesc4" id="selesc4" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selcon4" id="selcon4" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td>
                <a href="javascript:agrOpciones('4', 'tidm', 'lnkt', 5);" class="myButton lnkt4">+</a>
                <a href="javascript:quiOpciones('4', 'tidm', 'lnkt');" class="myButton lnkt4"> - </a>
            </td>
          </tr>
		  <tr id="tidm5" class="tidm5" style="display: none;">
            <td><select name="selidm5" id="selidm5" class="idXML blkCF" style="width:250px">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $Idiomas;
                    ?>
            </select></td>
            <td><select name="selhab5" id="selhab5" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selesc5" id="selesc5" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><select name="selcon5" id="selcon5" class="idXML blkCF">
                    <option value="" selected="selected"> Seleccione </option> 
                    <?php
                        echo $NivelesConocimiento;
                    ?>
            </select></td>
            <td><a href="javascript:quiOpciones('5', 'tidm', 'lnkt');" class="myButton lnkt5"> - </a></td>
          </tr>
        </table>
        
        <p id="pintidm1" class="pintidm1" style="display: block;">
          <label for="selinti1">Inter&eacute;s de idioma:</label>
          <select name="selinti1" id="selinti1" class="iiXML blkCF" style="width:250px">
            <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Idiomas;
                    ?>
          </select>
          <a href="javascript:agrOpciones('1', 'pintidm', 'lnkin', 5);" class="myButton lnkin1"> + </a>
		</p>
        <p class="pintidm1" style="display: block;">
          <label for="txtobid1">Observaci&oacute;n:</label>
          <textarea name="txtobid1" id="txtobid1" cols="45" rows="5" class="iiXML blkCF" style="width:248px" maxlength="150"></textarea>
          <input name="chkidms1" type="checkbox" class="year-box iiXML blkCF" id="chkidms1" />
          <label for="chkidms1">Solventado</label>
        </p>
		<p id="pintidm2" class="pintidm2" style="display: none;">
          <label for="selinti2">Inter&eacute;s de idioma:</label>
          <select name="selinti2" id="selinti2" class="iiXML blkCF" style="width:250px">
            <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Idiomas;
                    ?>
          </select>
          <a href="javascript:agrOpciones('2', 'pintidm', 'lnkin', 5);" class="myButton lnkin2"> + </a>
          <a href="javascript:quiOpciones('2', 'pintidm', 'lnkin');" class="myButton lnkin2"> - </a>
		</p>
        <p class="pintidm2" style="display: none;">
          <label for="txtobid2">Observaci&oacute;n:</label>
          <textarea name="txtobid2" id="txtobid2" cols="45" rows="5" class="iiXML blkCF" style="width:248px" maxlength="150"></textarea>
          <input name="chkidms2" type="checkbox" class="year-box iiXML blkCF" id="chkidms2" />
          <label for="chkidms2">Solventado</label>
        </p>
		<p id="pintidm3" class="pintidm3" style="display: none;">
          <label for="selinti3">Inter&eacute;s de idioma:</label>
          <select name="selinti3" id="selinti3" class="iiXML blkCF" style="width:250px">
            <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Idiomas;
                    ?>
          </select>
          <a href="javascript:agrOpciones('3', 'pintidm', 'lnkin', 5);" class="myButton lnkin3"> + </a>
          <a href="javascript:quiOpciones('3', 'pintidm', 'lnkin');" class="myButton lnkin3"> - </a>
		</p>
        <p class="pintidm3" style="display: none;">
          <label for="txtobid3">Observaci&oacute;n:</label>
          <textarea name="txtobid3" id="txtobid3" cols="45" rows="5" class="iiXML blkCF" style="width:248px" maxlength="150"></textarea>
          <input name="chkidms3" type="checkbox" class="year-box iiXML blkCF" id="chkidms3" />
          <label for="chkidms3">Solventado</label>
        </p>
		<p id="pintidm4" class="pintidm4" style="display: none;">
          <label for="selinti4">Inter&eacute;s de idioma:</label>
          <select name="selinti4" id="selinti4" class="iiXML blkCF" style="width:250px">
            <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Idiomas;
                    ?>
          </select>
          <a href="javascript:agrOpciones('4', 'pintidm', 'lnkin', 5);" class="myButton lnkin4"> + </a>
          <a href="javascript:quiOpciones('4', 'pintidm', 'lnkin');" class="myButton lnkin4"> - </a>
		</p>
        <p class="pintidm4" style="display: none;">
          <label for="txtobid4">Observaci&oacute;n:</label>
          <textarea name="txtobid4" id="txtobid4" cols="45" rows="5" class="iiXML blkCF" style="width:248px" maxlength="150"></textarea>
          <input name="chkidms4" type="checkbox" class="year-box iiXML blkCF" id="chkidms4" />
          <label for="chkidms4">Solventado</label>
        </p>
		<p id="pintidm5" class="pintidm5" style="display: none;">
          <label for="selinti5">Inter&eacute;s de idioma:</label>
          <select name="selinti5" id="selinti5" class="iiXML blkCF" style="width:250px">
            <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Idiomas;
                    ?>
          </select>
          <a href="javascript:quiOpciones('5', 'pintidm', 'lnkin');" class="myButton lnkin5"> - </a>
        </p>
        <p class="pintidm5" style="display: none;">
          <label for="txtobid5">Observaci&oacute;n:</label>
          <textarea name="txtobid5" id="txtobid5" cols="55" rows="5" class="iiXML blkCF" style="width:248px" maxlength="150"></textarea>
          <input name="chkidms5" type="checkbox" class="year-box iiXML blkCF" id="chkidms5" />
          <label for="chkidms5">Solventado</label>
        </p>
		<p><h6>Inform&aacute;tica
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
              <table width="75%" border="0">
          <tr>
            <th width="136" scope="col">Programa</th>
            <th width="136" scope="col">Nivel</th>
            <th width="44" scope="col">&nbsp;</th>
          </tr>
          <tr id="tinf1" class="tinf1" style="display: table-row;">
            <td>
                <select name="selpro1" id="selpro1" class="prXML blkCF" style="width:300px">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Programas;
                    ?>
                </select>
            </td>
            <td>
                <select name="selniv1" id="selniv1" class="prXML blkCF">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $NivelesConocimiento;
                    ?>
                </select>
            </td>
            <td>
                <a href="javascript:agrOpciones('1', 'tinf', 'lnki', 5);" class="myButton lnki1">+</a>
            </td>
          </tr>
          <tr id="tinf2" class="tinf2" style="display: none;">
            <td>
                <select name="selpro2" id="selpro2" class="prXML blkCF" style="width:300px">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Programas;
                    ?>
                </select>
            </td>
            <td>
                <select name="selniv2" id="selniv2" class="prXML blkCF">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $NivelesConocimiento;
                    ?>
                </select>
            </td>
            <td>
                <a href="javascript:agrOpciones('2', 'tinf', 'lnki', 5);" class="myButton lnki2"> + </a>
                <a href="javascript:quiOpciones('2', 'tinf', 'lnki');" class="myButton lnki2"> - </a>
            </td>
          </tr>
          <tr id="tinf3" class="tinf3" style="display: none;">
            <td>
                <select name="selpro3" id="selpro3" class="prXML blkCF" style="width:300px">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Programas;
                    ?>
                </select>
            </td>
            <td>
                <select name="selniv3" id="selniv3" class="prXML blkCF">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $NivelesConocimiento;
                    ?>
                </select>
            </td>
            <td>
                <a href="javascript:agrOpciones('3', 'tinf', 'lnki', 5);" class="myButton lnki3"> + </a>
                <a href="javascript:quiOpciones('3', 'tinf', 'lnki');" class="myButton lnki3"> - </a>
            </td>
          </tr>
          <tr id="tinf4" class="tinf4" style="display: none;">
            <td>
                <select name="selpro4" id="selpro4" class="prXML blkCF" style="width:300px">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Programas;
                    ?>
                </select>
            </td>
            <td>
                <select name="selniv4" id="selniv4" class="prXML blkCF">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $NivelesConocimiento;
                    ?>
                </select>
            </td>
            <td>
                <a href="javascript:agrOpciones('4', 'tinf', 'lnki', 5);" class="myButton lnki4"> + </a>
                <a href="javascript:quiOpciones('4', 'tinf', 'lnki');" class="myButton lnki4"> - </a>
            </td>
          </tr>
          <tr id="tinf5" class="tinf5" style="display: none;">
            <td>
                <select name="selpro5" id="selpro5" class="prXML blkCF" style="width:300px">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $Programas;
                    ?>
                </select>
            </td>
            <td>
                <select name="selniv5" id="selniv5" class="prXML blkCF">
                    <option value="" selected="selected"> Seleccione </option>
                    <?php
                        echo $NivelesConocimiento;
                    ?>
                </select>
            </td>
            <td>
                <a href="javascript:quiOpciones('5', 'tinf', 'lnki');" class="myButton lnki5"> - </a>
            </td>
          </tr>
        </table>
		<p>&nbsp;</p>
        <p id="pintinf1" class="pintinf1" style="display: block;">
          <label for="selintin1">Inter&eacute;s inform&aacute;tica:</label>
          <select name="selintin1" id="selintin1" class="iprXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $Programas;
            ?>
          </select>
          <a href="javascript:agrOpciones('1', 'pintinf', 'lnkif', 5);" class="myButton lnkif1"> + </a>
		</p>
        <p class="pintinf1" style="display: block;">
          <label for="txtobinf1">Observaci&oacute;n:</label>
          <textarea name="txtobinf1" id="txtobinf1" cols="45" rows="5" class="iprXML blkCF" style="width:295px" maxlength="150"></textarea>
          <input name="chkinfs1" type="checkbox" class="year-box iprXML blkCF" id="chkinfs1" />
          <label for="chkinfs1">Solventado</label>
        </p>
        <p id="pintinf2" class="pintinf2" style="display: none;">
          <label for="selintin2">Inter&eacute;s inform&aacute;tica:</label>
          <select name="selintin2" id="selintin2" class="iprXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $Programas;
            ?>
          </select>
          <a href="javascript:agrOpciones('2', 'pintinf', 'lnkif', 5);" class="myButton lnkif2"> + </a>
          <a href="javascript:quiOpciones('2', 'pintinf', 'lnkif');" class="myButton lnkif2"> - </a>
		</p>
        <p class="pintinf2" style="display: none;">
          <label for="txtobinf2">Observaci&oacute;n:</label>
          <textarea name="txtobinf2" id="txtobinf2" cols="45" rows="5" class="iprXML blkCF" style="width:295px" maxlength="150"></textarea>
          <input name="chkinfs2" type="checkbox" class="year-box iprXML blkCF" id="chkinfs2" />
          <label for="chkinfs2">Solventado</label>
        </p>
        <p id="pintinf3" class="pintinf3" style="display: none;">
          <label for="selintin3">Inter&eacute;s inform&aacute;tica:</label>
          <select name="selintin3" id="selintin3" class="iprXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $Programas;
            ?>
          </select>
          <a href="javascript:agrOpciones('3', 'pintinf', 'lnkif', 5);" class="myButton lnkif3"> + </a>
          <a href="javascript:quiOpciones('3', 'pintinf', 'lnkif');" class="myButton lnkif3"> - </a>
		</p>
        <p class="pintinf3" style="display: none;">
          <label for="txtobinf3">Observaci&oacute;n:</label>
          <textarea name="txtobinf3" id="txtobinf3" cols="45" rows="5" class="iprXML blkCF" style="width:295px" maxlength="150"></textarea>
          <input name="chkinfs3" type="checkbox" class="year-box iprXML blkCF" id="chkinfs3" />
          <label for="chkinfs3">Solventado</label>
        </p>
        <p id="pintinf4" class="pintinf4" style="display: none;">
          <label for="selintin4">Inter&eacute;s inform&aacute;tica:</label>
          <select name="selintin4" id="selintin4" class="iprXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $Programas;
            ?>
          </select>
          <a href="javascript:agrOpciones('4', 'pintinf', 'lnkif', 5);" class="myButton lnkif4"> + </a>
          <a href="javascript:quiOpciones('4', 'pintinf', 'lnkif');" class="myButton lnkif4"> - </a>
		</p>
        <p class="pintinf4" style="display: none;">
          <label for="txtobinf4">Observaci&oacute;n:</label>
          <textarea name="txtobinf4" id="txtobinf4" cols="45" rows="5" class="iprXML blkCF" style="width:295px" maxlength="150"></textarea>
          <input name="chkinfs4" type="checkbox" class="year-box iprXML blkCF" id="chkinfs4" />
          <label for="chkinfs4">Solventado</label>
        </p>
        <p id="pintinf5" class="pintinf5" style="display: none;">
          <label for="selintin5">Inter&eacute;s inform&aacute;tica:</label>
          <select name="selintin5" id="selintin5" class="iprXML blkCF" style="width:300px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $Programas;
            ?>
          </select>
          <a href="javascript:quiOpciones('5', 'pintinf', 'lnkif');" class="myButton lnkif5"> - </a>
        </p>
        <p class="pintinf5" style="display: none;">
          <label for="txtobinf5">Observaci&oacute;n:</label>
          <textarea name="txtobinf5" id="txtobinf5" cols="55" rows="5" class="iprXML blkCF" style="width:295px" maxlength="150"></textarea>
          <input name="chkinfs5" type="checkbox" class="year-box iprXML blkCF" id="chkinfs5" />
          <label for="chkinfs5">Solventado</label>
        </p>
		<p>&nbsp;</p>
        <p>
          <a id="btnCF" href="javascript:validar_ori_CF();" class="myButton"> Guardar Informaci&oacute;n</a>
        </p>
        <p>&nbsp;</p>
      </form>
    </div>
	
    <div id="fragment-3">
		<form action="" method="post" name="form1" class="frm" id="form2">
		<p><h6>Situaci&oacute;n Laboral
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        
        <p>
          <label for="selestemp"><span class="Estilo6">*</span>Estado Empleo:</label>
          <select name="selestemp" id="selestemp" class="blkCE" style="width:125px">
            <option value="" selected="selected"> Seleccione </option>
            <?php
                echo $EstadoEmpleo;
            ?>
          </select>
        </p>
        <p>&nbsp;</p>
        <p>
            <label for="selsitemp"><span class="Estilo6">*</span>Situaci&oacute;n de Empleo:</label>
          <select name="selsitemp" id="selsitemp" class="blkCE">
            <option value="" selected="selected"> Seleccione </option>
            <option value="Empleado"> Empleado </option>
            <option value="Desempleado"> Desempleado </option>
          </select>
          <label for="txtincapa">&nbsp;&nbsp;<span class="Estilo6">*</span>Tipo de trabajo:</label>
          <select name="txtincapa" id="txtincapa" class="blkCE">
            <option value="" selected="selected"> Seleccione </option>
            <option value="Permanente"> Permanente </option>
            <option value="Temporal"> Temporal </option>
          </select>
          <label for="txtobsitlab">&nbsp;&nbsp;&nbsp;Observaciones:</label>
          <textarea name="txtobsitlab" id="txtobsitlab" cols="45" rows="5" class="blkCE" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
        <p>
          <label for="seltinsmej">Inscrito como solicitante/Mejora de empleo:</label>
          <select name="seltinsmej" id="seltinsmej" class="blkCE">
            <option value="N" selected="selected"> No </option>
            <option value="S"> Si </option>
            <option value="A"> Ambos </option>
          </select>
          <label for="txtslant" class="mejEmp" style="display: block;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Antiguedad:</label>
          <input type="text" name="txtslant" id="txtslant" class="mejEmp blkCE" style="display: block;" onkeypress="return permitir(event,'num')" maxlength="12"/>
          <label for="txtslnoafp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No AFP:</label>
          <input type="text" name="txtslnoafp" id="txtslnoafp" class="blkCE" onkeypress="return permitir(event,'num')" maxlength="12"/>
        </p>
        <p>
          <label for="txtslnois">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No ISSS:</label>
          <input type="text" name="txtslnois" id="txtslnois" class="blkCE" onkeypress="return permitir(event,'num')" maxlength="12"/>
          <label for="txtslnoip">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No IPSFA:</label>
          <input type="text" name="txtslnoip" id="txtslnoip" class="blkCE" onkeypress="return permitir(event,'num')" maxlength="12"/>
          <label for="Nit"><span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span>NIT:</label>
          <input name="Nit" type="text" id="Nit" class="blkCE" maxlength="14"  style="width:108px" onkeypress="return permitir(event,'num')"/>
        </p>
		<br/><br/>
        <p><h6>Situaci&oacute;n Socio Laboral
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        <p>
          <label for="selnofam"><span class="Estilo6">*</span>Nº Miembros Unidad Familiar:</label>
          <input name="selnofam" type="text" id="selnofam" class="blkCE" maxlength="2" onkeypress="return permitir(event,'num')"/>

          <label for="selconrem">&nbsp;&nbsp;<span class="Estilo6">*</span>Con &nbsp;&nbsp;remuneraci&oacute;n:</label>
          <input name="selconrem" type="text" id="selconrem" class="blkCE" maxlength="2" onkeypress="return permitir(event,'num')"/>

          <label for="selnoper">&nbsp;&nbsp;<span class="Estilo6">*</span>Nº personas a &nbsp;&nbsp;cargo:</label>
          <input name="selnoper" type="text" id="selnoper" class="blkCE" maxlength="2" onkeypress="return permitir(event,'num')"/>

        </p>
        <p>
          <label for="seltiing">Tiene ingresos:</label>
          <select name="seltiing" id="seltiing" class="blkCE">
            <option value="N" selected="selected"> No </option>
            <option value="S"> Si </option>
          </select>
          <label for="selipcon" class="tieIng" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>Concepto:</label>
          <select name="selipcon" id="selipcon" class="tieIng blkCE" style="display: none; width:118px">
            <option value="" selected="selected"> Seleccione </option>
            <option value="Pension"> Pensi&oacute;n </option>
            <option value="OtrosIng"> Otros Ingresos </option>
            <option value="Ambos"> Ambos </option>
          </select>
          <label for="txtconing" class="tieIng" style="display: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>Cantidad:</label>
          <input type="text" name="txtconing" id="txtconing" class="tieIng blkCE mskCero" style="display: none; width:111px" onkeypress="return permitir(event,'num')" maxlength="12" value="0"/>
        </p>
        <p>
          <label for="txtfecvig" class="tieIng" style="display: none;"><span class="Estilo6">*</span>Vigencia de la pensi&oacute;n:</label>
          <input type="text" class="tieIng" id="txtfecvig" name="txtfecvig" style="display: none;" onkeypress="return permitir(event,'car_gen')" maxlength="50" value=""/>
          <label for="txtobing">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Observaciones:</label>
          <textarea name="txtobing" id="txtobing" cols="45" rows="5" class="blkCE" style="width:350px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
        <p>&nbsp;</p>
		<p><h6>Experiencia laboral
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        
		<table width="100%" border="0">
		  <tr>
			<th scope="col"><div align="center">Empresa</div></th>
			<th scope="col"><div align="center">Puesto</div></th>
			<th scope="col"><div align="center">Inicio</div></th>
			<th scope="col"><div align="center">Fin</div></th>
			<th scope="col"><div align="center">Motivo de baja</div></th>
			<th scope="col">&nbsp;</th>
		  </tr>
		  <tr class="texpla1" id="texpla1" style="display: table-row;">
			<td>
				<input type="text" name="txtempt1" id="txtempt1" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="50"/>
			</td>
			<td>
				<input type="text" name="txtpuet1" id="txtpuet1" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="30"/>
			</td>
			<td>
				<input type="text" name="txtinit1" id="txtinit1" readonly="readonly" class="exlaXML datepicker blkCE valFecMe"/>
			</td>
			<td>
				<input type="text" name="txtfint1" id="txtfint1" readonly="readonly" class="exlaXML datepicker blkCE valFecMa"/>
			</td>
			<td>
				<select name="selmott1" id="selmott1" class="exlaXML blkCE">
					<option value="" selected="selected"> Seleccione </option>
                                        <?php
                                            echo $MotivoBaja;
                                        ?>
				</select>
			</td>
			<td>
				<a href="javascript:agrOpciones('1', 'texpla', 'lnktsl', 5);" class="myButton lnktsl1">+</a>
			</td>
		  </tr>
                  <tr class="texpla1" style="display: table-row;">
			<td colspan="3"><label for="txtslfunr">Funciones realizadas:</label>
				<textarea name="txtslfunr1" id="txtslfunr1" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')"></textarea></td>
			<td colspan="2"><label for="txtslobex">Observaciones:</label>
				<textarea name="txtslobex1" id="txtslobex1" cols="45" rows="5" class="exlaXML blkCE" style="width:150px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr class="texpla1" style="display: table-row;">
			<td colspan="3"><label for="txtslayte">Ayudas tecnicas o adaptaciones del puesto de trabajo necesarias:</label>
                                <textarea name="txtslayte1" id="txtslayte1" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')" maxlength="100"></textarea></td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr style="display: none;" class="texpla2" id="texpla2">
			<td>
				<input type="text" name="txtempt2" id="txtempt2" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="50"/>
			</td>
			<td>
				<input type="text" name="txtpuet2" id="txtpuet2" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="30"/>
			</td>
			<td>
				<input type="text" name="txtinit2" id="txtinit2" readonly="readonly" class="exlaXML datepicker blkCE valFecMe"/>
			</td>
			<td>
				<input type="text" name="txtfint2" id="txtfint2" readonly="readonly" class="exlaXML datepicker blkCE valFecMa"/>
			</td>
			<td>
				<select name="selmott2" id="selmott2" class="exlaXML blkCE">
					<option value="" selected="selected"> Seleccione </option>
                                        <?php
                                            echo $MotivoBaja;
                                        ?>
				</select>
			</td>
			<td>
				<a href="javascript:agrOpciones('2', 'texpla', 'lnktsl', 5);" class="myButton lnktsl2"> + </a>
                                <a href="javascript:quiOpciones('2', 'texpla', 'lnktsl');" class="myButton lnktsl2"> - </a>
			</td>
		  </tr>
                  <tr class="texpla2" style="display: none;">
			<td colspan="3"><label for="txtslfunr">Funciones realizadas:</label>
				<textarea name="txtslfunr2" id="txtslfunr2" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')"></textarea></td>
			<td colspan="2"><label for="txtslobex">Observaciones:</label>
				<textarea name="txtslobex2" id="txtslobex2" cols="45" rows="5" class="exlaXML blkCE" style="width:150px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr class="texpla2" style="display: none;">
			<td colspan="3"><label for="txtslayte">Ayudas tecnicas o adaptaciones del puesto de trabajo necesarias:</label>
                                <textarea name="txtslayte2" id="txtslayte2" cols="45" rows="5" style="width:250px" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="100"></textarea></td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr style="display: none;" class="texpla3" id="texpla3">
			<td>
				<input type="text" name="txtempt3" id="txtempt3" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="50"/>
			</td>
			<td>
				<input type="text" name="txtpuet3" id="txtpuet3" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="30"/>
			</td>
			<td>
				<input type="text" name="txtinit3" id="txtinit3" readonly="readonly" class="exlaXML datepicker blkCE valFecMe"/>
			</td>
			<td>
				<input type="text" name="txtfint3" id="txtfint3" readonly="readonly" class="exlaXML datepicker blkCE valFecMa"/>
			</td>
			<td>
				<select name="selmott3" id="selmott3" class="exlaXML blkCE">
					<option value="" selected="selected"> Seleccione </option>
                                        <?php
                                            echo $MotivoBaja;
                                        ?>
				</select>
			</td>
			<td>
				<a href="javascript:agrOpciones('3', 'texpla', 'lnktsl', 5);" class="myButton lnktsl3">+</a>
                                <a href="javascript:quiOpciones('3', 'texpla', 'lnktsl');" class="myButton lnktsl3"> - </a>
			</td>
		  </tr>
                  <tr class="texpla3" style="display: none;">
			<td colspan="3"><label for="txtslfunr">Funciones realizadas:</label>
				<textarea name="txtslfunr3" id="txtslfunr3" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')"></textarea></td>
			<td colspan="2"><label for="txtslobex">Observaciones:</label>
				<textarea name="txtslobex3" id="txtslobex3" cols="45" rows="5" class="exlaXML blkCE" style="width:150px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr class="texpla3" style="display: none;">
			<td colspan="3"><label for="txtslayte">Ayudas tecnicas o adaptaciones del puesto de trabajo necesarias:</label>
                                <textarea name="txtslayte3" id="txtslayte3" cols="45" rows="5"  style="width:250px" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="100"></textarea></td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr style="display: none;" class="texpla4" id="texpla4">
			<td>
				<input type="text" name="txtempt4" id="txtempt4" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="50"/>
			</td>
			<td>
				<input type="text" name="txtpuet4" id="txtpuet4" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="30"/>
			</td>
			<td>
				<input type="text" name="txtinit4" id="txtinit4" readonly="readonly" class="exlaXML datepicker blkCE valFecMe"/>
			</td>
			<td>
				<input type="text" name="txtfint4" id="txtfint4" readonly="readonly" class="exlaXML datepicker blkCE valFecMa"/>
			</td>
			<td>
				<select name="selmott4" id="selmott4" class="exlaXML blkCE">
					<option value="" selected="selected"> Seleccione </option>
                                        <?php
                                            echo $MotivoBaja;
                                        ?>
				</select>
			</td>
			<td>
				<a href="javascript:agrOpciones('4', 'texpla', 'lnktsl', 5);" class="myButton lnktsl4"> + </a>
                                <a href="javascript:quiOpciones('4', 'texpla', 'lnktsl');" class="myButton lnktsl4"> - </a>
			</td>
		  </tr>
                  <tr class="texpla4" style="display: none;">
			<td colspan="3"><label for="txtslfunr">Funciones realizadas:</label>
				<textarea name="txtslfunr4" id="txtslfunr4" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')"></textarea></td>
			<td colspan="2"><label for="txtslobex">Observaciones:</label>
				<textarea name="txtslobex4" id="txtslobex4" cols="45" rows="5" class="exlaXML blkCE" style="width:150px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr class="texpla4" style="display: none;">
			<td colspan="3"><label for="txtslayte">Ayudas tecnicas o adaptaciones del puesto de trabajo necesarias:</label>
                                <textarea name="txtslayte4" id="txtslayte4" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')" maxlength="100"></textarea></td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr style="display: none;" class="texpla5" id="texpla5">
			<td>
				<input type="text" name="txtempt5" id="txtempt5" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="50"/>
			</td>
			<td>
				<input type="text" name="txtpuet5" id="txtpuet5" class="exlaXML blkCE" onkeypress="return permitir(event,'num_carSsp')" maxlength="30"/>
			</td>
			<td>
				<input type="text" name="txtinit5" id="txtinit5" readonly="readonly" class="exlaXML datepicker blkCE valFecMe"/>
			</td>
			<td>
				<input type="text" name="txtfint5" id="txtfint5" readonly="readonly" class="exlaXML datepicker blkCE valFecMa"/>
			</td>
			<td>
				<select name="selmott5" id="selmott5" class="exlaXML blkCE">
					<option value="" selected="selected"> Seleccione </option>
                                        <?php
                                            echo $MotivoBaja;
                                        ?>
				</select>
			</td>
			<td>
                            <a href="javascript:quiOpciones('5', 'texpla', 'lnktsl');" class="myButton lnktsl5"> - </a>
			</td>
		  </tr>
                  <tr class="texpla5" style="display: none;">
			<td colspan="3"><label for="txtslfunr">Funciones realizadas:</label>
				<textarea name="txtslfunr5" id="txtslfunr5" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')"></textarea></td>
			<td colspan="2"><label for="txtslobex">Observaciones:</label>
				<textarea name="txtslobex5" id="txtslobex5" cols="45" rows="5" class="exlaXML blkCE" style="width:150px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr class="texpla5" style="display: none;">
			<td colspan="3"><label for="txtslayte">Ayudas tecnicas o adaptaciones del puesto de trabajo necesarias:</label>
                                <textarea name="txtslayte5" id="txtslayte5" cols="45" rows="5" class="exlaXML blkCE" style="width:250px" onkeypress="return permitir(event,'num_carSsp')" maxlength="100"></textarea></td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>
		<p>&nbsp;</p>
        <p>
          <a id="btnCE" href="javascript:validar_ori_CE();" class="myButton"> Guardar Informaci&oacute;n</a>
        </p>
        <p>&nbsp;</p>
      </form>
    </div>

    <div id="fragment-4">
      <form action="" method="post" name="form3" class="frm" id="form3">
	  <p><h6>Disponibilidad laboral
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        
        <p>
          <label for="seliptj"><span class="Estilo6">*</span>Tipo jornada:</label>
          <select name="seliptj" id="seliptj" class="blkDL">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $TipoJornada;
              ?>
          </select>
          <label for="selipho">&nbsp;&nbsp;&nbsp;&nbsp;<span class="Estilo6">*</span>Horario:</label>
          <select name="selipho" id="selipho" class="blkDL">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $TipoHorario;
              ?>
          </select>
          <label for="seliplt"><span class="Estilo6">&nbsp;&nbsp;*</span>Lugar de trabajo:</label>
          <input type="text" name="seliplt" id="seliplt" class="blkDL" onkeypress="return permitir(event,'num_carSsp')" maxlength="50"/>
        </p>
        <p>
          <label for="txtexpeco">&nbsp;&nbsp;<span class="Estilo6">*</span>Expectativa econ&oacute;mica:</label>
          <input type="text" name="txtexpeco" id="txtexpeco" class="blkDL" onkeypress="return permitir(event,'num')" maxlength="12"/>
          <label for="selipdv">&nbsp;&nbsp;<span class="Estilo6">*</span>Disponibilidad &nbsp;&nbsp;viaje:</label>
          <select name="selipdv" id="selipdv" class="blkDL">
              <option value="" selected="selected"> Seleccione </option>
              <option value="N"> No </option>
              <option value="S"> Si </option>
          </select>
          <label for="selipdcr">&nbsp;&nbsp;<span class="Estilo6">*</span>Disponibilidad &nbsp;&nbsp;cambiar &nbsp;&nbsp;residencia:</label>
          <select name="selipdcr" id="selipdcr" class="blkDL">
              <option value="" selected="selected"> Seleccione </option>
              <option value="N"> No </option>
              <option value="S"> Si </option>
          </select>
        </p>
        <p>
          <label for="seliptic"><span class="Estilo6">*</span>Tipo contrato:</label>
          <select name="seliptic" id="seliptic" class="blkDL" style="width:200px">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $TipoContrato;
              ?>
          </select>
        </p>
        <p>
          <label for="selipobs">Observaciones:</label>
          <textarea name="selipobs" id="selipobs" cols="45" rows="5" class="blkDL" style="width:350px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
        </p>
		<p><h6>Inter&eacute;s Profesional
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>

        <p id="pintprof1" class="pintprof1">
          <label for="selinppo1">Profesi&oacute;n/Ocupaci&oacute;n:</label>
          <select name="selinppo1" id="selinppo1" class="intpXML blkDL" style="width:300px">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $Profesion_ocupacion;
              ?>
          </select>
          <label for="txtinpobs1">&nbsp;&nbsp;&nbsp;&nbsp;Observaci&oacute;n:</label>
          <textarea name="txtinpobs1" id="txtinpobs1" cols="45" rows="5" class="intpXML blkDL" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkslsol1" type="checkbox" class="year-box intpXML blkDL" id="chkslsol1" />
          <label for="chkslsol1" class="year-box">Solventada.</label>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:agrOpciones('1', 'pintprof', 'lnkint', 5);" class="myButton lnkint1">+</a>
		</p>
		<p id="pintprof2" class="pintprof2" style="display: none;">
          <label for="selinppo2">Profesi&oacute;n/Ocupaci&oacute;n:</label>
          <select name="selinppo2" id="selinppo2" class="intpXML blkDL" style="width:300px">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $Profesion_ocupacion;
              ?>
          </select>
          <label for="txtinpobs2">&nbsp;&nbsp;&nbsp;&nbsp;Observaci&oacute;n:</label>
          <textarea name="txtinpobs2" id="txtinpobs2" cols="45" rows="5" class="intpXML blkDL" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkslsol2" type="checkbox" class="year-box intpXML blkDL" id="chkslsol2" />
          <label for="chkslsol2" class="year-box intpXML">Solventada.</label>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:agrOpciones('2', 'pintprof', 'lnkint', 5);" class="myButton lnkint2">+</a>
                        <a href="javascript:quiOpciones('2', 'pintprof', 'lnkint');" class="myButton lnkint2">-</a>
		</p>
		<p id="pintprof3" class="pintprof3" style="display: none;">
          <label for="selinppo3">Profesi&oacute;n/Ocupaci&oacute;n:</label>
          <select name="selinppo3" id="selinppo3" class="intpXML blkDL" style="width:300px">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $Profesion_ocupacion;
              ?>
          </select>
          <label for="txtinpobs3">&nbsp;&nbsp;&nbsp;&nbsp;Observaci&oacute;n:</label>
          <textarea name="txtinpobs3" id="txtinpobs3" cols="45" rows="5" class="intpXML blkDL" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkslsol3" type="checkbox" class="year-box intpXML blkDL" id="chkslsol3" />
          <label for="chkslsol3" class="year-box">Solventada.</label>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:agrOpciones('3', 'pintprof', 'lnkint', 5);" class="myButton lnkint3">+</a>
                        <a href="javascript:quiOpciones('3', 'pintprof', 'lnkint');" class="myButton lnkint3">-</a>
		</p>
		<p id="pintprof4" class="pintprof4" style="display: none;">
          <label for="selinppo4">Profesi&oacute;n/Ocupaci&oacute;n:</label>
          <select name="selinppo4" id="selinppo4" class="intpXML blkDL" style="width:300px">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $Profesion_ocupacion;
              ?>
          </select>
          <label for="txtinpobs4">&nbsp;&nbsp;&nbsp;&nbsp;Observaci&oacute;n:</label>
          <textarea name="txtinpobs4" id="txtinpobs4" cols="45" rows="5" class="intpXML blkDL" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkslsol4" type="checkbox" class="year-box intpXML blkDL" id="chkslsol4" />
          <label for="chkslsol4" class="year-box">Solventada.</label>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:agrOpciones('4', 'pintprof', 'lnkint', 5);" class="myButton lnkint4">+</a>
                        <a href="javascript:quiOpciones('4', 'pintprof', 'lnkint');" class="myButton lnkint4">-</a>
		</p>
		<p id="pintprof5" class="pintprof5" style="display: none;">
          <label for="selinppo5">Profesi&oacute;n/Ocupaci&oacute;n:</label>
          <select name="selinppo5" id="selinppo5" class="intpXML blkDL" style="width:300px">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $Profesion_ocupacion;
              ?>
          </select>
          <label for="txtinpobs5">&nbsp;&nbsp;&nbsp;&nbsp;Observaci&oacute;n:</label>
          <textarea name="txtinpobs5" id="txtinpobs5" cols="55" rows="5" class="intpXML blkDL" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
          <input name="chkslsol5" type="checkbox" class="year-box intpXML blkDL" id="chkslsol5" />
          <label for="chkslsol5" class="year-box">Solventada.</label>
			&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="javascript:quiOpciones('5', 'pintprof', 'lnkint');" class="myButton lnkint5">-</a>
		</p>
        <p>&nbsp;</p>
        <p>
          <a id="btnDL" href="javascript:validar_ori_DL();" class="myButton"> Guardar Informaci&oacute;n</a>
        </p>
        <p>&nbsp;</p>
	</form>
    </div>

    <div id="fragment-5">
      <form action="" method="post" name="form4" class="frm" id="form4">
        <p><h6>B&uacute;squeda empleo
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        <p>
          <label for="txtinfor1"><span class="Estilo6">*</span>Expectativas personales/ Profesionales:</label>
          <textarea name="txtinfor1" id="txtinfor1" cols="55" rows="5" style="width:200px" class="blkIO" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor2"><span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;*</span>Adecuaci&oacute;n de &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expectativas:</label>
          <textarea name="txtinfor2" id="txtinfor2" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          </p>
		<p></p>
		<p>
		  <label for="txtinfor3"><span class="Estilo6">*</span>Actitud/ motivaci&oacute;n ante la b&uacute;squeda de empleo:</label>
          <textarea name="txtinfor3" id="txtinfor3" cols="55" rows="5" style="width:200px" class="blkIO" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor4"><span class="Estilo6">&nbsp;&nbsp;&nbsp;*</span>Habilidades para &nbsp;&nbsp;&nbsp;&nbsp;la b&uacute;squeda de &nbsp;&nbsp;&nbsp;&nbsp;empleo:</label>
          <textarea name="txtinfor4" id="txtinfor4" cols="55" rows="5" style="width:200px" class="blkIO" onkeypress="return permitir(event,'num_carSsp')"></textarea>
         </p>
		<p></p>
		<p> 
		  <label for="txtinfor5"><span class="Estilo6">*</span>Nivel de empleabilidad:</label>
          <textarea name="txtinfor5" id="txtinfor5" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor6" style="display: none;">Autonomia Personal:</label>
          <textarea name="txtinfor6" id="txtinfor6" cols="55" rows="5" class="blkIO" style="display: none; width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
        <p><h6>Autonomia Personal
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>  
        <p>
          <label for="txtinfor7"><span class="Estilo6">*</span>Independencia para actividad diaria:</label>
          <textarea name="txtinfor7" id="txtinfor7" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor8"><span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span>Acceso al &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;transporte:</label>
          <textarea name="txtinfor8" id="txtinfor8" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
         </p>
		<p></p>
        <p> 
		 <label for="txtinfor9"><span class="Estilo6">*</span>Orientaci&oacute;n en el entorno:</label>
          <textarea name="txtinfor9" id="txtinfor9" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor23" style="display: none;">Problemas mantenerse inscrito:</label>
          <select name="txtinfor23" id="txtinfor23" style="display: none;">
              <option value="NO" selected="selected"> Seleccione </option>
              <option value="SI" > Si </option>
              <option value="NO" > No </option>
          </select>
          <label for="txtinfor24" style="display: none;">Por qu&eacute;?:</label>
          <textarea rows="5" cols="45" id="txtinfor24" name="txtinfor24" style="display: none;"></textarea>
          <label for="txtinfor11">&nbsp;&nbsp;&nbsp;Observaciones:</label>
          <textarea rows="5" cols="45" id="txtinfor11" name="txtinfor11" style="width:200px" class="blkIO" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
        <p>&nbsp;
            
        </p>
		<p><h6>Competencias conductuales
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>

        <p>
          <label for="txtinfor12"><span class="Estilo6">*</span>Habilidades sociales:</label>
          <textarea name="txtinfor12" id="txtinfor12" cols="55" rows="5" class="blkIO"  style="width:200px"onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor13"><span class="Estilo6">&nbsp;&nbsp;&nbsp;*</span>Habilidades &nbsp;&nbsp;&nbsp;comunicativas:</label>
          <textarea name="txtinfor13" id="txtinfor13" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
         </p>
		<p></p>
		<p> 
		  <label for="txtinfor14"><span class="Estilo6">*</span>Trabajo en equipo:</label>
          <textarea name="txtinfor14" id="txtinfor14" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor15"><span class="Estilo6">&nbsp;&nbsp;&nbsp;*</span>Capacidad de &nbsp;&nbsp;&nbsp;iniciativa:</label>
          <textarea name="txtinfor15" id="txtinfor15" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
		<p></p>
		<p>
		 <label for="txtinfor16"><span class="Estilo6">*</span>Flexibilidad / adaptaci&oacute;n:</label>
          <textarea name="txtinfor16" id="txtinfor16" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor17"><span class="Estilo6">&nbsp;&nbsp;*</span>Responsabilidad:</label>
          <textarea name="txtinfor17" id="txtinfor17" cols="55" rows="5" class="blkIO"  style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
        <p>	
          <label for="txtinfor18"><span class="Estilo6">*</span>Relaciones interpersonales:</label>
          <textarea name="txtinfor18" id="txtinfor18" cols="55" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
          <label for="txtinfor25" style="display:none"><span class="Estilo6">*</span>Autoestima:</label>
          <select name="txtinfor25" id="txtinfor25" style="display:none">
              <option value="" selected="selected"> Seleccione </option>
              <?php
                echo $NivelAutoestima;
              ?>
          </select>
          <label for="txtinfor19">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Otros:</label>
          <textarea rows="5" cols="45" id="txtinfor19" name="txtinfor19" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')"></textarea>
        </p>
        <p>&nbsp;</p>
        <p><h6>Plan personal de empleo y formaci&oacute;n
		<IMG id='Imagen' src="../images/linea.jpg" WIDTH=750 HEIGHT=10 BORDER=0 ></h6></p>
        
        <p>
          <label for="txtinfor20"><span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span>Empleo:</label>
          <textarea name="txtinfor20" id="txtinfor20" cols="45" rows="5" style="width:200px" class="blkIO" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
        
          <label for="txtinfor21"><span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span>Formaci&oacute;n:</label>
          <textarea name="txtinfor21" id="txtinfor21" cols="45" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
        </p>
        <p>
          <label for="txtinfor22"><span class="Estilo6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span>Valoraci&oacute;n:</label>
          <textarea name="txtinfor22" id="txtinfor22" cols="45" rows="5" class="blkIO" style="width:200px" onkeypress="return permitir(event,'num_carSsp')" maxlength="150"></textarea>
        </p>
        <p>&nbsp;</p>
        <p>
          <a id="btnIO" href="javascript:validar_inf_ori ();" class="myButton"> Guardar Informaci&oacute;n</a>
        </p>
        <p>&nbsp;</p>
      </form>
    </div>
 </div><!-- end tabs -->
    
    <p>&nbsp;</p>

  <!-- InstanceEndEditable --><!-- end .content -->  </div><!-- #BeginLibraryItem "/Library/footer.lbi" --><div class="footer">
    <p>Derechos Reservados copyright ©</p>
    <!-- end .footer --></div><!-- #EndLibraryItem --><!-- end .container --></div>
</body>
<!-- InstanceEnd --></html>
